This repository has been archived on 2023-02-03. You can view files and clone it, but cannot push or open issues or pull requests.
autonomic.zone/.gitlab-ci.yml

22 lines
471 B
YAML

image: ruby:2.4.2
stages:
- deploy
deploy:
stage: deploy
before_script:
- apt-get update -y
- apt-get -y install rsync
- gem install jekyll
- eval $(ssh-agent -s)
script:
- jekyll build -d public
- ssh-add <(echo "$SSH_PRIVATE_KEY")
- rsync -avz --delete --no-group -e 'ssh -o StrictHostKeyChecking=no' ./public/ "$SERVER_USER"@autonomic.zone:/var/www/autonomic.zone/html/
artifacts:
paths:
- public
only:
- master