Commit 0a3e0c1a authored by Nicholas J Anderson's avatar Nicholas J Anderson

Updated CI, moving to Pages and review apps

parent 57f9ef58
Pipeline #3389 failed
image: ruby:2.3
stages:
- build
- test
- deploy
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
before_script:
- ruby -v
- bundle install --jobs 4 --path vendor
build:
image: ruby:2.3
stage: build
cache:
key: "ruby-231"
paths:
- vendor/ruby
pages:
stage: deploy
environment:
name: production
url: https://srct.gmu.edu
script:
- cd srctweb/
- bundle install
- bundle exec jekyll build --trace -d '../build'
- bundle exec jekyll build --trace -d '../public'
artifacts:
paths:
- build
deploy_staging:
image: alpine
stage: deploy
script:
- echo 'Deploy bot awayyy';
environment:
name: staging
url: https://srct.gmu.io
path:
- public
expire_in: 1h
only:
- master@srct/srct.gmu.io
tags:
- docker
deploy_production:
image: alpine
review:
stage: deploy
before_script: []
cache: {}
script:
- echo "Deploy bot awayyyyy"
environment:
name: production
url: https://srct.gmu.edu
when: manual
- ls
- pwd
- whoami
- ls /srv/staging
- echo $CI_BUILD_REF_NAME
- echo $CI_PROJECT_NAME
- touch /tmp/gitlab-runner
except: master
only:
- master
- branches
environment:
name: review/$CI_BUILD_REF_NAME
url: http://$CI_BUILD_REF_NAME.$APPS_DOMAIN
on_stop: review_stop
variables:
GIT_STRATEGY: none
tags:
- banks
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment