Commit af972fad authored by rinpatch's avatar rinpatch

Copy the deploy script from pleroma repo

parent f92ee4a9
Pipeline #18086 failed with stages
in 1 minute and 8 seconds
......@@ -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}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment