2016-07-09 12:55:05 -04:00
|
|
|
# This is a basic example for a gem or script which doesn't use
|
|
|
|
# services such as redis or postgres
|
|
|
|
before_script:
|
2016-07-09 13:57:26 -04:00
|
|
|
- export PATH=/software/ruby-2.3/bin:$PATH
|
2016-07-09 13:25:49 -04:00
|
|
|
- ruby --version
|
2016-07-09 12:55:05 -04:00
|
|
|
|
2016-07-09 16:10:51 -04:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- deploy
|
|
|
|
|
2016-07-09 12:55:05 -04:00
|
|
|
build:
|
2016-07-09 16:10:51 -04:00
|
|
|
stage: build
|
2016-07-09 12:55:05 -04:00
|
|
|
script:
|
|
|
|
- rake
|
2016-07-09 14:59:48 -04:00
|
|
|
|
2016-07-09 16:10:51 -04:00
|
|
|
deploy:
|
|
|
|
stage: deploy
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
script:
|
2016-08-11 10:35:07 -04:00
|
|
|
- ln -s /var/www/static-site build
|
|
|
|
- rake deploy
|