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

fix(ci): actions cleaning up PR environment #217

Open
hwakabh opened this issue Dec 2, 2024 · 0 comments
Open

fix(ci): actions cleaning up PR environment #217

hwakabh opened this issue Dec 2, 2024 · 0 comments
Assignees
Labels
chore Administration issues deployment Issue related to application deployment/CI/CD

Comments

@hwakabh
Copy link
Owner

hwakabh commented Dec 2, 2024

AsIs

There are staled environment/deployments after PR had been merged, so we need to clean up them.
(Railway will automatically create connected GitHub environment with the PR, but not executed cleaning up)

% curl -s -k -X GET "https://api.github.com/repos/hwakabh/bennu-official.page/deployments" |jq '.[].original_environment' |sort | uniq
"bennu-official.page-pr-214"
"bennu-official.page-pr-215"
"bennu-official.page-pr-218"
"production"

ToDo

Implement GitHub Actions that:

  • periodically making API call for DELETE deployments
  • being invoked with cron format using scheduled actions (ref)

(Optional) Acceptance criteria

Confirm that staled deployment will be cleaned up after the PRs will be merged

(Optional) Additional contexts

N/A

@hwakabh hwakabh self-assigned this Dec 2, 2024
@hwakabh hwakabh added chore Administration issues deployment Issue related to application deployment/CI/CD labels Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Administration issues deployment Issue related to application deployment/CI/CD
Projects
None yet
Development

No branches or pull requests

1 participant