Commit 9b6f9a4c authored by Nicholas J Anderson's avatar Nicholas J Anderson

Speed up deploy process

"bundle install" was running on the deploy steps where it wasn't needed.

Moved the "bundle install" into the build step and sourced the deploy
steps from the tiny "alpine" base image.
parent 73419bd5
image: ruby:2.3
stages:
- build
- deploy
......@@ -7,32 +5,31 @@ stages:
variables:
JEKYLL_ENV: production
before_script:
- cd srctweb/
- bundle install
build:
image: ruby:2.3
stage: build
before_script:
- cd srctweb/
- bundle install
script:
- bundle exec jekyll build --trace -d '../build'
- cd srctweb/
- bundle install
- bundle exec jekyll build --trace -d '../build'
artifacts:
paths:
- build
- build
deploy_staging:
image: alpine
stage: deploy
script:
- echo 'Deploy bot awayyy';
- echo 'Deploy bot awayyy';
environment:
name: staging
url: https://srct.gmu.io
deploy_production:
image: alpine
stage: deploy
script: echo "Deploy bot awayyyyy"
script:
- echo "Deploy bot awayyyyy"
environment:
name: production
url: https://srct.gmu.edu
......
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