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
458 B
YAML

image: ruby:2.4
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 -rvz --delete -e 'ssh -o StrictHostKeyChecking=no' ./public/ "$SERVER_USER"@autonomic.zone:/var/www/autonomic.zone/html/
artifacts:
paths:
- public
only:
- master