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

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: stages:
- build - build
- deploy - deploy
...@@ -7,22 +5,19 @@ stages: ...@@ -7,22 +5,19 @@ stages:
variables: variables:
JEKYLL_ENV: production JEKYLL_ENV: production
- cd srctweb/
- bundle install
build: build:
image: ruby:2.3
stage: build stage: build
before_script: script:
- cd srctweb/ - cd srctweb/
- bundle install - bundle install
- bundle exec jekyll build --trace -d '../build' - bundle exec jekyll build --trace -d '../build'
artifacts: artifacts:
paths: paths:
- build - build
deploy_staging: deploy_staging:
image: alpine
stage: deploy stage: deploy
script: script:
- echo 'Deploy bot awayyy'; - echo 'Deploy bot awayyy';
...@@ -31,8 +26,10 @@ deploy_staging: ...@@ -31,8 +26,10 @@ deploy_staging:
url: url:
deploy_production: deploy_production:
image: alpine
stage: deploy stage: deploy
script: echo "Deploy bot awayyyyy" script:
- echo "Deploy bot awayyyyy"
environment: environment:
name: production name: production
url: url:
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