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
before_script:
- ruby -v
- bundle install --jobs 4 --path vendor
build: cache:
image: ruby:2.3 key: "ruby-231"
stage: build paths:
- vendor/ruby
pages:
stage: deploy
environment:
name: production
url: https://srct.gmu.edu
script: script:
- cd srctweb/ - cd srctweb/
- bundle install - bundle exec jekyll build --trace -d '../public'
- bundle exec jekyll build --trace -d '../build'
artifacts: artifacts:
paths: path:
- build - public
expire_in: 1h
deploy_staging: only:
image: alpine - master@srct/srct.gmu.io
stage: deploy tags:
script: - docker
- echo 'Deploy bot awayyy';
environment:
name: staging
url: https://srct.gmu.io
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