and now the build passes with zero errors
All checks were successful
Deploy website on production server when committing on main / test (push) Successful in 9s

(until I shit my pants again with some other shenanigans)
This commit is contained in:
Bryan Joshua Pedini 2024-08-21 23:16:03 +02:00
parent ec6bbafb2e
commit 126bd66ddb

View File

@ -29,11 +29,6 @@ if [ -z "${DEPLOYMENT_HOST}" ] || [ -z "${DEPLOYMENT_PATH}" ]; then
exit 1 exit 1
fi fi
echo "${SSH_PRIVATE_KEY}"
echo "${SSH_USERNAME}"
echo "${DEPLOYMENT_HOST}"
echo "${DEPLOYMENT_PATH}"
tar -czf httpdocs.tgz -C public . tar -czf httpdocs.tgz -C public .
scp -o StrictHostKeyChecking=no ${SSH_PRIVATE_KEY} httpdocs.tgz ${SSH_USERNAME}${DEPLOYMENT_HOST}:/tmp/httpdocs.tgz scp -o StrictHostKeyChecking=no ${SSH_PRIVATE_KEY} httpdocs.tgz ${SSH_USERNAME}${DEPLOYMENT_HOST}:/tmp/httpdocs.tgz
ssh -o StrictHostKeyChecking=no ${SSH_PRIVATE_KEY} ${SSH_USERNAME}${DEPLOYMENT_HOST} "DEPLOYMENT_PATH=$DEPLOYMENT_PATH bash" << 'EOF' ssh -o StrictHostKeyChecking=no ${SSH_PRIVATE_KEY} ${SSH_USERNAME}${DEPLOYMENT_HOST} "DEPLOYMENT_PATH=$DEPLOYMENT_PATH bash" << 'EOF'