Website/.gitlab-ci.yml

32 lines
490 B
YAML
Raw Normal View History

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
documents:
2016-07-26 00:57:23 -04:00
stage: deploy
2016-07-09 14:59:48 -04:00
script:
- rake documents
2016-07-09 14:59:48 -04:00
artifacts:
paths:
- artifacts/*.pdf
- artifacts/db.json
2016-07-26 00:57:23 -04:00
2016-07-09 16:10:51 -04:00
deploy:
stage: deploy
only:
- master
script:
2016-08-11 10:32:21 -04:00
- ln -s /var/www/static-site build documents
2016-07-09 16:16:30 -04:00
- rake