feat: added CD deploy part to gitlab-ci.yml
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
06ed04fbbb
commit
4280261c1e
@ -28,4 +28,15 @@ release-master:
|
|||||||
only:
|
only:
|
||||||
- master
|
- 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;"
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user