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

do not merge - For testing: added workflows to delete images and deployment #924

Closed
wants to merge 14 commits into from

Conversation

rajpalc7
Copy link
Contributor

@rajpalc7 rajpalc7 commented Nov 17, 2023

do not merge - For testing creating github action job to delete images older than 30 days every tuesday, closing PR jobs and stale issues.

@rajpalc7 rajpalc7 requested a review from esune November 17, 2023 07:05
@WadeBarnes
Copy link
Member

Resolves: #598

@WadeBarnes WadeBarnes linked an issue Nov 17, 2023 that may be closed by this pull request
@rajpalc7 rajpalc7 closed this Nov 17, 2023
@rajpalc7 rajpalc7 reopened this Nov 17, 2023
@rajpalc7 rajpalc7 closed this Nov 17, 2023
@rajpalc7 rajpalc7 reopened this Nov 17, 2023
Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
@rajpalc7 rajpalc7 closed this Nov 17, 2023
@rajpalc7 rajpalc7 reopened this Nov 17, 2023
@rajpalc7 rajpalc7 closed this Nov 17, 2023
Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
@rajpalc7
Copy link
Contributor Author

Hi @esune , This is ready for testing now. Lets connect whenever you are available.

Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
Copy link
Member

@esune esune left a comment

Choose a reason for hiding this comment

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

The PR is closed, but the changes have not been merged: are you still working on it @rajpalc7 ?

Comment on lines +7 to +9
push:
branches:
- ghcr-clean
Copy link
Member

Choose a reason for hiding this comment

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

Unsure about why there is a push trigger on the ghcr-clean branch: as noted previously, I don't think we want to trigger the action on push to any branch, but just run on a schedule and/or manually.

Copy link
Contributor Author

@rajpalc7 rajpalc7 Nov 28, 2023

Choose a reason for hiding this comment

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

Hi @esune i am testing workflow by running it on my local branch. Deleted the push trigger after successful testing.

@@ -2,19 +2,20 @@ name: Uninstall PR instance
on:
pull_request:
branches:
- main
- ghcr-clean
Copy link
Member

Choose a reason for hiding this comment

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

This is incorrect, PRs should be targeting main (as it was set to do before).

Copy link
Contributor Author

@rajpalc7 rajpalc7 Nov 28, 2023

Choose a reason for hiding this comment

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

Hi @esune i am testing workflow by running on my branch . Reverted back to main now.

@@ -0,0 +1 @@
testS
Copy link
Member

Choose a reason for hiding this comment

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

I assume this is the test file used to trigger the deployment: it should not be part of the PR though.

Copy link
Contributor Author

@rajpalc7 rajpalc7 Nov 28, 2023

Choose a reason for hiding this comment

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

Hi @esune i am testing stuff to trigger the workflow. Deleted the test file now

.github/workflows/delete_images.yaml Outdated Show resolved Hide resolved
@rajpalc7 rajpalc7 reopened this Nov 28, 2023
@rajpalc7 rajpalc7 marked this pull request as draft November 28, 2023 04:01
Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
@rajpalc7 rajpalc7 closed this Nov 28, 2023
Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
@rajpalc7 rajpalc7 reopened this Nov 28, 2023
Signed-off-by: Rajpal Chauhan <rajpal.chauhan@gov.bc.ca>
@rajpalc7
Copy link
Contributor Author

rajpalc7 commented Nov 28, 2023

Hi @esune, I was able to re-test all the 3 jobs successfully with suggested changes. I can demo it tomorrow and we can go there.

@rajpalc7 rajpalc7 changed the title feat: added workflows to delete images and deployment do not merge - For testing: added workflows to delete images and deployment Nov 29, 2023
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.

GHCR image and deployment retention strategy
3 participants