ci: Deploy web site.

This commit is contained in:
Justus Winter 2020-02-26 18:31:18 +01:00
commit 35da918563

View file

@ -20,6 +20,13 @@ build_job:
deploy_job:
stage: deploy
script:
- /bin/false # not implemented
- DEBIAN_FRONTEND=noninteractive apt install --no-install-recommends -y -qq -o=Dpkg::Use-Pty=0 openssh-client rsync
- umask 0077
- mkdir $HOME/.ssh
- eval $(ssh-agent -s)
- echo "$RSYNC_TARGET_SECRET_KEY" | ssh-add -
- echo "[$RSYNC_TARGET_HOST]:$RSYNC_TARGET_PORT $RSYNC_TARGET_HOST_KEY" > $HOME/.ssh/known_hosts
- rsync -av --delete -e "ssh -p $RSYNC_TARGET_PORT" public/* "$RSYNC_TARGET_USER@$RSYNC_TARGET_HOST:/"
only:
- master
- hugo