Commit 40fd2802 authored by oo's avatar oo
Browse files

Update .gitlab-ci.yml file

parent 7367c12a
Pipeline #2098 passed with stage
in 51 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