add deployment step
Mergedmerenber merged 2 commits from
main2 years ago
Reference in new issue
There is no content yet.
Delete Branch 'merenber-ssh-deploy'
Deleting a branch is permanent. It CANNOT be undone. Continue?
- 'echo "$SSH_KEY" > /tmp/ssh_key'
- ssh -i /tmp/ssh_key firstname.lastname@example.org '~/bin/deploy-website.sh'
Can we somehow use the /deploy.sh script placed in this repository, just so that everything is in a single place?
if not this is also fine :)
The contents of deploy-website.sh are just
if the contents of the file is a single line, why not inline that command here?
It's because we have a
commandclause in the authorized_keys file for the www user.
- 'curl -XPOST -H "Authorization: $TOKEN" -H "X-Branch: $DRONE_BRANCH" "https://csclub.uwaterloo.ca/~a3thakra/update-csc/"'
Can you add a condition here so it doesn't run on the main branch?
Sidenote: can we get https://staging.csclub.uwaterloo.ca to deploy branches in a similar fashion?
I suggest using the progcom VM for this, since it is sitting unused right now.
Unless there are any objections, I'm going to merge this one in.
a21e8f2f0cinto main 2 years ago