summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-07-22 15:22:34 +0200
committerPatrick Spek <p.spek@tyil.nl>2019-07-22 15:22:34 +0200
commit149923a22f8000c444055c58f1538a8e30c207f1 (patch)
tree85179346b2f09dc535a875a3c36cd318d60dacdd /.gitlab-ci.yml
parent0f1d4170dba9ae64a54153630bde5bbe949a897a (diff)
Add GitLab CI configuration
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml27
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