2016-06-26 22:42:49 +02:00
|
|
|
variables:
|
2016-06-26 22:44:26 +02:00
|
|
|
PATH: "$PATH:node_modules/.bin"
|
2016-06-26 22:42:49 +02:00
|
|
|
|
2016-06-26 22:20:30 +02:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
2015-07-14 00:06:29 +02:00
|
|
|
Npm, Bower, Grunt:
|
|
|
|
script:
|
2015-10-07 19:14:09 +02:00
|
|
|
- npm install
|
|
|
|
- bower install
|
|
|
|
- grunt
|
2015-07-14 00:06:29 +02:00
|
|
|
tags:
|
|
|
|
except:
|
2015-10-07 19:14:09 +02:00
|
|
|
- tags
|
2016-06-26 22:20:30 +02:00
|
|
|
stage: build
|
|
|
|
artifacts:
|
2016-06-26 22:22:09 +02:00
|
|
|
paths:
|
|
|
|
- dist/
|
|
|
|
- info/
|
|
|
|
- resources/
|
|
|
|
- index.html
|
|
|
|
- manifest.appcache
|
2016-06-26 22:20:30 +02:00
|
|
|
|
|
|
|
staging:
|
|
|
|
stage: deploy
|
|
|
|
script: deploy.sh
|
|
|
|
environment: staging
|
|
|
|
only:
|
|
|
|
- develop
|
|
|
|
variables:
|
2016-06-26 22:28:07 +02:00
|
|
|
ENVIRON: staging
|
2016-06-26 22:20:30 +02:00
|
|
|
|
|
|
|
production:
|
|
|
|
stage: deploy
|
|
|
|
script: deploy.sh
|
|
|
|
environment: production
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
variables:
|
2016-06-26 22:28:07 +02:00
|
|
|
ENVIRON: production
|