Added deploy to the gitbal-ci configuration

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2021-09-24 10:14:57 +02:00
parent a0803ef8ea
commit bd1e20e61e
No known key found for this signature in database
GPG Key ID: 0C87282F76E61283

View File

@ -33,3 +33,12 @@ release-master:
only:
- master
deploy:
stage: deploy
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
script:
- ssh -o StrictHostKeyChecking=no -p $SSH_PORT $SSH_DESTINATION "cd $PATH_TO_APPLICATION; $UPGRADE_COMMAND;"