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
467 B
YAML
Raw Normal View History

2019-06-06 00:42:54 +00:00
image: ruby:2.4
2017-08-31 11:44:57 +00:00
2017-10-04 13:36:04 +00:00
stages:
- deploy
2017-10-13 20:56:13 +00:00
deploy:
stage: deploy
2017-10-04 13:36:04 +00:00
before_script:
2018-08-21 17:15:26 +00:00
- apt-get update -y
- apt-get -y install rsync
2019-09-06 12:32:21 +00:00
- gem install jekyll -v 3.6.0
2018-08-21 17:33:22 +00:00
- eval $(ssh-agent -s)
2017-10-04 13:36:04 +00:00
script:
2017-10-13 20:56:13 +00:00
- jekyll build -d public
2018-08-21 17:33:22 +00:00
- ssh-add <(echo "$SSH_PRIVATE_KEY")
2018-08-21 17:51:21 +00:00
- rsync -rvz --delete -e 'ssh -o StrictHostKeyChecking=no' ./public/ "$SERVER_USER"@autonomic.zone:/var/www/autonomic.zone/html/
2017-08-31 11:44:57 +00:00
artifacts:
paths:
2017-10-13 20:56:13 +00:00
- public
2017-10-13 22:25:00 +00:00
only:
2018-08-21 17:06:34 +00:00
- master