Commit 15fe334d authored by Michael Aschauer's avatar Michael Aschauer
Browse files
parents b29e6bd6 40fd2802
Pipeline #2100 passed with stage
in 1 minute and 27 seconds
image: alpine:latest
backend-redeploy:
stage: deploy
before_script:
- 'command -v ssh-agent >/dev/null || ( apk add --update openssh )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
script:
- ssh -oStrictHostKeyChecking=no $SSH_USER@$VHOST_ADDRESS -p $VHOST_PORT "/bin/bash ~/redeploy.sh"
only:
- main
Supports Markdown
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