Merge branch 'feature/go-gitlab-pages' into 'develop'
Feature/go gitlab pages See merge request !10
This commit is contained in:
commit
d6604351fe
1 changed files with 23 additions and 19 deletions
|
@ -8,8 +8,8 @@ stages:
|
||||||
script:
|
script:
|
||||||
- chmod +x ./deploy.sh
|
- chmod +x ./deploy.sh
|
||||||
- ./deploy.sh
|
- ./deploy.sh
|
||||||
dependencies:
|
# dependencies:
|
||||||
- build_job
|
# - build_job
|
||||||
|
|
||||||
build_job:
|
build_job:
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -54,27 +54,31 @@ cleanup_build_job:
|
||||||
- rm -rf typings
|
- rm -rf typings
|
||||||
when: on_failure
|
when: on_failure
|
||||||
|
|
||||||
develop:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
<<: *run_deploy
|
environment: staging
|
||||||
environment: develop
|
|
||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
- master
|
- master
|
||||||
- develop
|
script:
|
||||||
variables:
|
- mkdir -p public/{app/converter,node_modules/{@angular,core-js/client,zone.js/dist,reflect-metadata,rxjs,systemjs/dist,utf8,quoted-printable,punycode}}
|
||||||
ENVIRON: develop
|
- cp -a index.html abeezee-regular.woff freemono.* package.json systemjs.config.js public/
|
||||||
TARGET: $WWW_DEPLOY_ROOT_DEVELOP
|
- cp -a app/*.css app/*.html app/*.js app/*.js.map public/app/
|
||||||
|
- cp -a app/converter/*.js app/converter/*.js.map public/app/converter/
|
||||||
staging:
|
- cp -a node_modules/@angular/* public/node_modules/@angular/
|
||||||
stage: deploy
|
- cp -a node_modules/core-js/client/shim.js public/node_modules/core-js/client/
|
||||||
<<: *run_deploy
|
- cp -a node_modules/zone.js/dist/zone.js public/node_modules/zone.js/dist/
|
||||||
environment: staging
|
- cp -a node_modules/reflect-metadata/Reflect.js public/node_modules/reflect-metadata/
|
||||||
only:
|
- cp -a node_modules/rxjs/* public/node_modules/rxjs/
|
||||||
- develop
|
- cp -a node_modules/systemjs/dist/system.src.js public/node_modules/systemjs/dist/
|
||||||
variables:
|
- cp -a node_modules/utf8/utf8.js public/node_modules/utf8/
|
||||||
ENVIRON: staging
|
- cp -a node_modules/quoted-printable/quoted-printable.js public/node_modules/quoted-printable/
|
||||||
TARGET: $WWW_DEPLOY_ROOT_STAGING
|
- cp -a node_modules/punycode/punycode.js public/node_modules/punycode/
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public
|
||||||
|
dependencies:
|
||||||
|
- build_job
|
||||||
|
|
||||||
production:
|
production:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
Loading…
Reference in a new issue