-
Notifications
You must be signed in to change notification settings - Fork 30
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
v3 release #84
Comments
Will there be a |
Sorry, didn't read the release notes too carefully
|
No worries Dropping the mutable tags seems like it should:
If you're worried about falling behind on action versions, I can recommend using dependabot for github actions, like we do here 👍 It will open a PR with the relevant release notes when there's a new action version available. Let me know if this misses out on some other benefit of a v3 tag that I haven't considered! |
Everybody does it differently regarding tags and mutable tags. I personally prefer mutable tags for major-tag and minor-tag (examples I am personally maintaining a few github actions and reusable github action workflows which are located in several private git repos, and I would like to share my workflow for PR merges which implements what I discussed above. I am not saying that you should implement it yourself, as I get that it is hard to test all scenarios for a small/medium sized opensource project.
Keep up the good work, and I will definitely check out the dependabot example you supplied. Thanks! |
I am having issues defining a rule that would remove every outdated image but the skipped ones. The previous config looked like this: image-names: foo
cut-off: One month ago UTC
keep-at-least: 1
account-type: personal
skip-tags: base, production
token: ${{ secrets.GITHUB_TOKEN }}
token-type: github-token The new: account: user
token: ${{ secrets.GITHUB_TOKEN }}
image-names: foo
image-tags: *, !base, !production
cut-off: 4w
keep-n-most-recent: 1 But this does not work. GitHub says: |
Please try I'll see if I can fix this in a patch release, so it would work in the future. |
That does not work either. 😔 Now it is complaining about the |
See this example which does the same thing. Is your workflow public? |
That example is not exactly the same, because that has an explicit wildcard. With the explicit wildcard, I get the error when I use No, unfortunately, the workflow is not public. |
I would guess that you need to make the yaml property it into a string to not get that
|
I am unsure how the YAML value is handled by this project, but will that work the same way? Wouldn't it try to ignore images with tags |
It should work the same way, but I'd suggest running the action with |
This is my current step definition:
|
That should work @raszi 👍 Quoting the values is fine. I see what you mean about it being illegal yaml. I'll update the docs and release note. |
As a quick tip: you can run the action with |
Hi, Based on the README image-names section, I expected to use a GitHub App for cleanup a image name like
Unfortunately, when I tried to use it as documented in the GitHub App token sample, I got the following response:
Looking at the latest history, I saw a commit, that mentions GitHub App tokens behave like temporal tokens.
My GitHub App has I'm not 100% sure, if I just used the action wrong or my App has wrong settings. But if it is not possible to have wildcard image names with GitHub App tokens, perhaps the README can be updated. As soon as I switched to using a classical PAT, the workflow stated to work as expected. |
Yes, this worked! Thanks! |
Hmm, it sounds like we're assuming you're using As for the token permissions, I think these exist for PATs, but they may not do for app tokens? |
|
It was renamed to |
in this code example in root reame.md: container-retention-policy/README.md Line 489 in 4f22ef8
it should be
names here were swapped no? |
If you notice any problems in the new release, please post them here 👍
The text was updated successfully, but these errors were encountered: