are variables actually defined?
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 7s
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 7s
This commit is contained in:
parent
0c6699e211
commit
80b3490e37
@ -29,6 +29,11 @@ if [ -z "${DEPLOYMENT_HOST}" ] || [ -z "${DEPLOYMENT_PATH}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "${SSH_PRIVATE_KEY}"
|
||||
echo "${SSH_USERNAME}"
|
||||
echo "${DEPLOYMENT_HOST}"
|
||||
echo "${DEPLOYMENT_PATH}"
|
||||
|
||||
tar -czf httpdocs.tgz -C public .
|
||||
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'
|
||||
|
Loading…
Reference in New Issue
Block a user