ci: Deploy web site.
This commit is contained in:
parent
e39f445e4a
commit
35da918563
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue