You've already forked pedini.dev
ssh key is handled by the job
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 8s
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 8s
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user