first attempt at creating environments and some sophisticated CI stuff.

This commit is contained in:
Manuel Friedli 2016-06-26 22:20:30 +02:00
parent b57ee1534a
commit 2394301b10
2 changed files with 34 additions and 0 deletions

View file

@ -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
View 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."