Copy the deploy script from pleroma repo
This commit is contained in:
parent
f92ee4a98b
commit
af972fad73
1 changed files with 6 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Reference in a new issue