diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8e45a81 --- /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/socialnerds.org + environment: + name: production + url: https://socialnerds.org + only: + - master +