ssh key is handled by the job
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 8s

This commit is contained in:
2026-02-01 19:13:29 +01:00
parent 289e06d6c3
commit 4f16efe7ed

View File

@@ -25,7 +25,7 @@ fi
# Compress the built website and scp it to the remote host
tar -czf httpdocs.tgz -C public .
scp ${SSH_PRIVATE_KEY} httpdocs.tgz ${SSH_USERNAME}${DEPLOYMENT_HOST}:/tmp/httpdocs.tgz
scp httpdocs.tgz ${SSH_USERNAME}${DEPLOYMENT_HOST}:/tmp/httpdocs.tgz
# SSH to the remote host, cd to the deployment path, and deploy the website (delete and overwrite everything)
ssh ${SSH_PRIVATE_KEY} ${SSH_USERNAME}${DEPLOYMENT_HOST} "DEPLOYMENT_PATH=$DEPLOYMENT_PATH bash" << 'EOF'