Add deploy step

This commit is contained in:
Gabriel Augendre 2020-12-26 18:05:50 +01:00
parent 30c5b3fc1f
commit 26b0615b65
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -75,12 +75,16 @@ publish:
only: only:
- master - master
#deploy: deploy:
# tags: stage: deploy
# - it4nw image: ubuntu
# stage: deploy before_script:
# image: tobedefined # todo: look for image with ssh - 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y --no-install-recommends )'
# script: - eval $(ssh-agent -s)
# - exit 1 - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
# only: - mkdir -p ~/.ssh
# - master - chmod 700 ~/.ssh
script:
- ssh blog -o StrictHostKeyChecking=no "/home/gaugendre/blog/update"
only:
- master