diff options
author | Patrick Spek <p.spek@tyil.nl> | 2019-07-22 15:22:34 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2019-07-22 15:22:34 +0200 |
commit | 149923a22f8000c444055c58f1538a8e30c207f1 (patch) | |
tree | 85179346b2f09dc535a875a3c36cd318d60dacdd /.gitlab-ci.yml | |
parent | 0f1d4170dba9ae64a54153630bde5bbe949a897a (diff) |
Add GitLab CI configuration
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c0f3aaa --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,27 @@ +stages: + - build + - push + +build: + stage: build + image: ruby:latest + before_script: + - bundle install + script: + - bundle exec jekyll build + artifacts: + paths: + - _site + +push: + stage: push + only: + - master + image: docker:stable + services: + - docker:dind + before_script: + - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY + script: + - docker build -t $CI_REGISTRY_IMAGE:latest . + - docker push $CI_REGISTRY_IMAGE:latest |