From cda6acaf9ba0892754acc866e6e787eae2af89d0 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 6 May 2017 10:16:19 +0200 Subject: [PATCH] added ci file --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a9c4d71 --- /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/ /home/user-data/www/default/ + environment: + name: production + url: https://excelsior.socialnerds.org + only: + - master +