add deployment step #310
Labels
No Label
a11y
Backlog
Blocked
Bug
Content
Dependencies
Design
Feature Request
Good First Issue
In Progress
Performance
Priority - High
Priority - Low
Priority - Medium
Untriaged
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: www/www-new#310
Loading…
Reference in New Issue
No description provided.
Delete Branch "merenber-ssh-deploy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #131.
@ -50,0 +56,4 @@
from_secret: DEPLOYMENT_SSH_KEY
commands:
- 'echo "$SSH_KEY" > /tmp/ssh_key'
- ssh -i /tmp/ssh_key www@caffeine.csclub.uwaterloo.ca '~/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
command
clause in the authorized_keys file for the www user.@ -47,7 +47,21 @@ steps:
commands:
- '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.