Skip to content
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

Add GH workflow to trigger redeploy after new packages are published #2493

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

jake-low
Copy link
Contributor

I'm working on a new staging environment that will be automatically redeployed whenever changes are made to the main branch of the maproulette3 or maproulette-backend repos.

The deployment code lives in maproulette/maproulette-deploy (private for now but I will make this public soon, just need to audit for secret leaks first). This PR adds a workflow to the frontend repo which is triggered when new packages are published (there's an existing repo which builds and publishes packages to GHCR whenever code changes are made). The workflow sends a webhook to the deploy repo to trigger its workflow, which is responsible for deploying the new package version onto the staging server.

I haven't tested this yet (GH actions are hard to test locally) so it may need some iteration, but I'm pretty sure this approach will work.

@jake-low jake-low merged commit fc8fc4f into main Nov 13, 2024
6 checks passed
@jake-low jake-low deleted the jlow/trigger-redeploy branch November 13, 2024 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant