added new environment for deploying branch builds
This commit is contained in:
parent
12838e31ee
commit
9a2c22ec64
1 changed files with 18 additions and 7 deletions
|
@ -27,17 +27,28 @@ build_job:
|
||||||
cleanup_build_job:
|
cleanup_build_job:
|
||||||
stage: cleanup_build
|
stage: cleanup_build
|
||||||
script:
|
script:
|
||||||
- rm -rf node_modules
|
- rm -rf node_modules
|
||||||
- rm -rf bower_components
|
- rm -rf bower_components
|
||||||
- rm -rf dist
|
- rm -rf dist
|
||||||
when: on_failure
|
when: on_failure
|
||||||
|
|
||||||
|
develop:
|
||||||
|
stage: deploy
|
||||||
|
script: deploy.sh
|
||||||
|
environment: develop
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
variables:
|
||||||
|
ENVIRON: develop
|
||||||
|
|
||||||
staging:
|
staging:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script: deploy.sh
|
script: deploy.sh
|
||||||
environment: staging
|
environment: staging
|
||||||
only:
|
only:
|
||||||
- develop
|
- develop
|
||||||
variables:
|
variables:
|
||||||
ENVIRON: staging
|
ENVIRON: staging
|
||||||
|
|
||||||
|
@ -46,13 +57,13 @@ production:
|
||||||
script: deploy.sh
|
script: deploy.sh
|
||||||
environment: production
|
environment: production
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
variables:
|
variables:
|
||||||
ENVIRON: production
|
ENVIRON: production
|
||||||
|
|
||||||
cleanup_job:
|
cleanup_job:
|
||||||
stage: cleanup
|
stage: cleanup
|
||||||
script:
|
script:
|
||||||
- rm -rf node_modules
|
- rm -rf node_modules
|
||||||
- rm -rf bower_components
|
- rm -rf bower_components
|
||||||
when: always
|
when: always
|
||||||
|
|
Loading…
Reference in a new issue