Cleanup step added
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (push) Successful in 3s
Remote Deployment Pipeline / Create remote directory (push) Successful in 7s
Remote Deployment Pipeline / Cleanup MR environment (push) Has been skipped
Remote Deployment Pipeline / Sync repository files (push) Successful in 18s
Remote Deployment Pipeline / Run docker-compose remotely (push) Successful in 5s
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (push) Successful in 3s
Remote Deployment Pipeline / Create remote directory (push) Successful in 7s
Remote Deployment Pipeline / Cleanup MR environment (push) Has been skipped
Remote Deployment Pipeline / Sync repository files (push) Successful in 18s
Remote Deployment Pipeline / Run docker-compose remotely (push) Successful in 5s
This commit is contained in:
@@ -137,6 +137,9 @@ jobs:
|
|||||||
}
|
}
|
||||||
chmod 644 ~/.ssh/known_hosts
|
chmod 644 ~/.ssh/known_hosts
|
||||||
|
|
||||||
|
- name: Run docker-compose down on remote host
|
||||||
|
run: ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "cd ${{ needs.prepare_deployment_vars.outputs.deploy_path }} && docker-compose down"
|
||||||
|
|
||||||
- name: Delete deployment directory
|
- name: Delete deployment directory
|
||||||
run: |
|
run: |
|
||||||
ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "if [ -d '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' ]; then rm -rf '${{ needs.prepare_deployment_vars.outputs.deploy_path }}'; echo 'Directory removed.'; else echo 'Directory not found, skipping.'; fi"
|
ssh -p "$SSH_PORT" $SSH_USER@$SSH_HOST "if [ -d '${{ needs.prepare_deployment_vars.outputs.deploy_path }}' ]; then rm -rf '${{ needs.prepare_deployment_vars.outputs.deploy_path }}'; echo 'Directory removed.'; else echo 'Directory not found, skipping.'; fi"
|
||||||
|
|||||||
Reference in New Issue
Block a user