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

build(preview): add branch preview cleanup workflow #1023

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

chrispymm
Copy link
Contributor

@chrispymm chrispymm commented Dec 16, 2024

This PR creates a github action that runs when a PR is closed (or merged). If the pull request has the label preview:active then this action will run.

It removes the kubernetes infrastructure for the preview site by issuing kubectl delete commands for the deployment, service and ingress that are created by the preview deploy action.

As a final step, it removes the preview:active label from the PR.

@chrispymm chrispymm added the preview:request Deploy PR to a preview url label Dec 16, 2024
Copy link

🚀 Deployed to preview environment!

URL: https://moj-frontend-branch-preview-cleanup-action.apps.live.cloud-platform.service.justice.gov.uk

Username: preview, Password: moj

@github-actions github-actions bot added preview:active and removed preview:request Deploy PR to a preview url labels Dec 16, 2024
@chrispymm chrispymm closed this Dec 16, 2024
@chrispymm chrispymm reopened this Dec 16, 2024
Copy link

🚀 Deployed to preview environment!

URL: https://moj-frontend-branch-preview-cleanup-action.apps.live.cloud-platform.service.justice.gov.uk

Username: preview, Password: moj

1 similar comment
Copy link

🚀 Deployed to preview environment!

URL: https://moj-frontend-branch-preview-cleanup-action.apps.live.cloud-platform.service.justice.gov.uk

Username: preview, Password: moj

@chrispymm chrispymm force-pushed the branch-preview-cleanup-action branch from 3fb810f to 2987497 Compare December 16, 2024 21:28
Copy link

🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL:

https://moj-frontend-branch-preview-cleanup-action.apps.live.cloud-platform.service.justice.gov.uk

Username: preview, Password: moj

@chrispymm chrispymm changed the title build(preview): Branch preview cleanup action build(preview): add branch preview cleanup workflow Dec 16, 2024
@chrispymm chrispymm marked this pull request as ready for review December 16, 2024 21:39
@chrispymm chrispymm requested a review from a team as a code owner December 16, 2024 21:39
@chrispymm chrispymm force-pushed the branch-preview-cleanup-action branch from 2987497 to d451bc3 Compare December 17, 2024 12:29
Copy link

🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL:

https://moj-frontend-branch-preview-cleanup-action.apps.live.cloud-platform.service.justice.gov.uk

Username: preview, Password: moj

@chrispymm chrispymm merged commit 0fd695d into main Dec 17, 2024
19 checks passed
@chrispymm chrispymm deleted the branch-preview-cleanup-action branch December 17, 2024 12:54
@gregtyler
Copy link
Contributor

🎉 This PR is included in version 3.2.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

🚀 Deployed to preview environment! If this is the first deploy, you may have to wait a few minutes for your preview site to be ready on the following URL:

https://moj-frontend-branch-preview-cleanup-action.apps.live.cloud-platform.service.justice.gov.uk

Username: preview, Password: moj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants