-
Notifications
You must be signed in to change notification settings - Fork 928
ci: deploy automatic PR deployments on request #8121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I had two ideas, but feel free to do them after merge if this is too difficult:
- Link to the Slack channel when it is deployed so that someone can fetch the access URL
- When the PR is closed, have the Slack bot reply to the thread to say that the deployment has been removed.
@bpmct if I understand correctly, 1 is already done? We get a notification whenever there is a new deployment. I will do 2 separately from this PR. |
This will allow us to have PR deployments on our OpenStack k8s cluster.
resolves #7889
How to use
To create a new PR deployment any org member can comment
/deploy-pr
on the pull request. A new deployment can be re-triggered by commenting/deploy-pr
again or manually invoking the workflow with,gh workflow run "Deploy PR" -f pr_number=PR_NUMBER
How this works
ghcr.io/coder/coder-preview:PR_NUMBER
pr${{PR_NUMBER}}
on k8s cluster hosted at OpenStack