fix: remove unnecessary quotes from ssh/scp args to sidestep woodpecker quoting bug
This commit is contained in:
@@ -53,25 +53,25 @@ steps:
|
|||||||
# bin/deploy-compose script to the target host.
|
# bin/deploy-compose script to the target host.
|
||||||
- |
|
- |
|
||||||
ssh -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
ssh -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
||||||
"$SSH_USER@$SSH_HOST" "mkdir -p /tmp/poc-deploy"
|
$SSH_USER@$SSH_HOST mkdir -p /tmp/poc-deploy
|
||||||
- |
|
- |
|
||||||
scp -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
scp -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
||||||
compose.yaml release.env secrets.decrypted.env \
|
compose.yaml release.env secrets.decrypted.env \
|
||||||
"$SSH_USER@$SSH_HOST:/tmp/poc-deploy/"
|
$SSH_USER@$SSH_HOST:/tmp/poc-deploy/
|
||||||
- |
|
- |
|
||||||
scp -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
scp -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
||||||
"$CI_WORKSPACE/bin/deploy-compose" \
|
$CI_WORKSPACE/bin/deploy-compose \
|
||||||
"$SSH_USER@$SSH_HOST:/tmp/poc-deploy/"
|
$SSH_USER@$SSH_HOST:/tmp/poc-deploy/
|
||||||
# Run the deployment on the target host, then remove the plaintext secrets.
|
# Run the deployment on the target host, then remove the plaintext secrets.
|
||||||
- |
|
- |
|
||||||
ssh -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
ssh -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
||||||
"$SSH_USER@$SSH_HOST" "chmod +x /tmp/poc-deploy/deploy-compose"
|
$SSH_USER@$SSH_HOST chmod +x /tmp/poc-deploy/deploy-compose
|
||||||
- |
|
- |
|
||||||
ssh -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
ssh -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
||||||
"$SSH_USER@$SSH_HOST" "/tmp/poc-deploy/deploy-compose"
|
$SSH_USER@$SSH_HOST /tmp/poc-deploy/deploy-compose
|
||||||
- |
|
- |
|
||||||
ssh -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
ssh -i /tmp/ssh/id_deploy -o StrictHostKeyChecking=accept-new \
|
||||||
"$SSH_USER@$SSH_HOST" "rm -f /tmp/poc-deploy/secrets.decrypted.env"
|
$SSH_USER@$SSH_HOST rm -f /tmp/poc-deploy/secrets.decrypted.env
|
||||||
- echo "Deployment finished."
|
- echo "Deployment finished."
|
||||||
when:
|
when:
|
||||||
event: [deployment, manual]
|
event: [deployment, manual]
|
||||||
|
|||||||
Reference in New Issue
Block a user