From 46aa12f60babdff0eb2b797c227f28f6d7506022 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 5 May 2017 00:29:34 +0200 Subject: [PATCH] added gitlab-ci.yml --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..d2c5f31 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,37 @@ +stages: + - test + - build + - deploy + +test: + stage: test + tags: + - jekyll + script: + - jekyll build -d test + except: + - master + +build: + stage: deploy + tags: + - jekyll + script: + - jekyll build -d public + only: + - master + + +deploy: + stage: deploy + tags: + - jekyll + script: + - jekyll build -d public + - rsync -av --delete public/* /var/www/gmur.ml + environment: + name: production + url: https://gmur.ml + only: + - master + diff --git a/README.md b/README.md index fec8dcc..15d6dae 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # gmur.ml +[![build status](https://socialg.it/web/gmurml/badges/master/build.svg)](https://socialg.it/web/gmurml/commits/master) + This is the jekyll code for https://gmur.ml