Add deploy step
This commit is contained in:
parent
30c5b3fc1f
commit
26b0615b65
1 changed files with 13 additions and 9 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue