This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/.gitlab-ci.yml

20 lines
466 B
YAML

stages:
- build
- test
- publish
- deploy
deploy:
stage: deploy
image: ubuntu
before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y --no-install-recommends )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
script:
- ssh blog -o StrictHostKeyChecking=no "/home/gaugendre/blog/update"
only:
- master