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:
|
||||
stage: cleanup_build
|
||||
script:
|
||||
- rm -rf node_modules
|
||||
- rm -rf bower_components
|
||||
- rm -rf dist
|
||||
- rm -rf node_modules
|
||||
- rm -rf bower_components
|
||||
- rm -rf dist
|
||||
when: on_failure
|
||||
|
||||
develop:
|
||||
stage: deploy
|
||||
script: deploy.sh
|
||||
environment: develop
|
||||
except:
|
||||
- tags
|
||||
- master
|
||||
- develop
|
||||
variables:
|
||||
ENVIRON: develop
|
||||
|
||||
staging:
|
||||
stage: deploy
|
||||
script: deploy.sh
|
||||
environment: staging
|
||||
only:
|
||||
- develop
|
||||
- develop
|
||||
variables:
|
||||
ENVIRON: staging
|
||||
|
||||
|
@ -46,13 +57,13 @@ production:
|
|||
script: deploy.sh
|
||||
environment: production
|
||||
only:
|
||||
- master
|
||||
- master
|
||||
variables:
|
||||
ENVIRON: production
|
||||
|
||||
cleanup_job:
|
||||
stage: cleanup
|
||||
script:
|
||||
- rm -rf node_modules
|
||||
- rm -rf bower_components
|
||||
- rm -rf node_modules
|
||||
- rm -rf bower_components
|
||||
when: always
|
||||
|
|
Loading…
Reference in a new issue