diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1f2004d..ac690f2 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,34 +1,16 @@ 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: + - apt-get update + - apt-get install -y ruby-full build-essential zlib1g-dev rsync + - gem install bundler jekyll - jekyll build -d public - - rsync -rvI --delete public/ /home/user-data/www/socialnerds.org/ + - rsync -rvI --delete public/ /srv/socialnerds.org/ environment: name: production url: https://socialnerds.org