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 weekly branch environment teardown and PR merge branch teardown #129

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

jamiecarterHO
Copy link
Contributor

What?

Updated config to tear down PR envs

Why?

The drone/cron jobs that should tear down branch environment deployments when a) the accompanying PR is merged to master or b) weekly at the end of the week is currently not succeeding.

This appears to be because of older config not correctly calling the branches or cron jobs.

How?

  • Updated deploy.sh section to include all microservices deployed by PAF in the relevant delete command
  • Updated drone pipeline steps to find PR branches and run commands to tear down

Copied new config/alterations from IMA and ASC projects where the jobs appear to work ok.

Anything Else?

The drone cron job in the PAF project (drone/paf/settings/cron is currently misnamed as tear_down_envs and so it doesn't run any specific step from the drone.yml. After these changes we need to create a new cron job called tear_down_pr_envs with (ideally) the schedule 0 0 21 * * 5 (but stock 'weekly' would be ok)

* Add missing deploys to delete
* Alter get pr branch command to be more like other new repos
Copy link
Contributor

@JHoldergov JHoldergov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work

@JHoldergov
Copy link
Contributor

nice work

you can run this one after 5pm to ensure it tears everything, I saw permissions errors before

@jamiecarterHO jamiecarterHO merged commit fdd1a68 into master Jan 30, 2024
2 of 3 checks passed
@jamiecarterHO jamiecarterHO deleted the fix-branch-teardown branch January 30, 2024 16:38
JHoldergov pushed a commit that referenced this pull request Feb 1, 2024
* Add missing deploys to delete
* Alter get pr branch command to be more like other new repos
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.

2 participants