first attempt at creating environments and some sophisticated CI stuff.
This commit is contained in:
parent
b57ee1534a
commit
2394301b10
2 changed files with 34 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
Npm, Bower, Grunt:
|
||||
script:
|
||||
- npm install
|
||||
|
@ -6,3 +10,29 @@ Npm, Bower, Grunt:
|
|||
tags:
|
||||
except:
|
||||
- tags
|
||||
stage: build
|
||||
artifacts:
|
||||
paths:
|
||||
- dist/
|
||||
- info/
|
||||
- resources/
|
||||
- index.html
|
||||
- manifest.appcache
|
||||
|
||||
staging:
|
||||
stage: deploy
|
||||
script: deploy.sh
|
||||
environment: staging
|
||||
only:
|
||||
- develop
|
||||
variables:
|
||||
- ENVIRON: staging
|
||||
|
||||
production:
|
||||
stage: deploy
|
||||
script: deploy.sh
|
||||
environment: production
|
||||
only:
|
||||
- master
|
||||
variables:
|
||||
- ENVIRON: production
|
||||
|
|
4
deploy.sh
Normal file
4
deploy.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Called deploy.sh for env ${ENVIRON}"
|
||||
echo "If I were to perform real work, I'd be doing that now. But I'm not."
|
Loading…
Reference in a new issue