42 lines
570 B
YAML
42 lines
570 B
YAML
variables:
|
|
PATH: "$PATH:node_modules/.bin"
|
|
|
|
stages:
|
|
- build
|
|
- deploy
|
|
|
|
Npm, Bower, Grunt:
|
|
script:
|
|
- npm install
|
|
- bower install
|
|
- 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
|