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

Updated CI, moving to Pages and review apps

parent 57f9ef58
Pipeline #3389 failed
image: ruby:2.3
stages: stages:
- build - test
- deploy - deploy
variables: variables:
JEKYLL_ENV: production JEKYLL_ENV: production
LC_ALL: C.UTF-8
build: before_script:
image: ruby:2.3 - ruby -v
stage: build - bundle install --jobs 4 --path vendor
script:
- cd srctweb/ cache:
- bundle install key: "ruby-231"
- bundle exec jekyll build --trace -d '../build'
artifacts:
paths: paths:
- build - vendor/ruby
deploy_staging: pages:
image: alpine
stage: deploy stage: deploy
script:
- echo 'Deploy bot awayyy';
environment: environment:
name: staging name: production
url: https://srct.gmu.io url: https://srct.gmu.edu
script:
- cd srctweb/
- bundle exec jekyll build --trace -d '../public'
artifacts:
path:
- public
expire_in: 1h
only:
- master@srct/srct.gmu.io
tags:
- docker
deploy_production: review:
image: alpine
stage: deploy stage: deploy
before_script: []
cache: {}
script: script:
- echo "Deploy bot awayyyyy" - ls
environment: - pwd
name: production - whoami
url: https://srct.gmu.edu - ls /srv/staging
when: manual - echo $CI_BUILD_REF_NAME
- echo $CI_PROJECT_NAME
- touch /tmp/gitlab-runner
except: master
only: 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