Copy the deploy script from pleroma repo

This commit is contained in:
rinpatch 2019-10-02 20:57:17 +03:00
parent f92ee4a98b
commit af972fad73

View file

@ -21,4 +21,9 @@ fetch-and-build:
deploy:
stage: deploy
script:
- echo "noop"
- apk update && apk add openssh-client rsync
- mkdir -p ~/.ssh
- echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- rsync -hrvz --delete -e "ssh -p ${SSH_PORT}" site "${SSH_USER_HOST_LOCATION}/${BRANCH}"