-
Notifications
You must be signed in to change notification settings - Fork 31
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
With version 1.5.0 images are no longer deleted #41
Comments
Huh, that's unfortunate. Are your workflow runs private, or could you link me one? These are all the changes since v1.4.2: https://github.com/snok/container-retention-policy/compare/main..3e6a692f35a6d52db6fde535877fe2fd379dfcb4 |
I made a test example: https://github.com/eickehnn/container-retention-policy-test |
That's really helpful, thanks! Looking at the changes from 1.4.2 again I wonder if there might be a problem with My own projects seem to work fine on v1.5.0, and I'm guessing the only relevant difference between the two is that your image name contains a I won't have time to look at this properly for at least a few days, but if you have time, I'd consider calling the Github API directly to see what data you're receiving and whether the The docs can be found here and here is the relevant code from the action 👍 |
In the current example, it's one image with currently four versions that should be reduced to two. I try it with main and the both latest commits from pr42 and pr44, but the issues is still there. |
I didn't read |
In my case |
I think the issue in the example is it's using This was my issue too, since I had wrongly assumed my username was part of the image name. But after checking the API, the name was... you know, the actual name: ❯ gh api /users/andreykaipov/packages?package_type=container | jq -r .[].name
goobs In hindsight that makes more sense than including the username. I ended up using Since the example pushes to |
Change the variables from ${{ github.repository }} to ${{ github.event.repository.name }} or replacing them with absolute values makes no difference, the images in this example are not deleted with version 1.5.0, but with version 1.4.2 they are. |
I have the same issue with 1.5.0. Is this issue fixed in 1.5.1? |
The suggestions above seem to indicate that it's caused by an image name mismatch. I'll close this for now, under that assumption, since we've not otherwise been able to replicate 🙂 Feel free to reopen if anyone has new information |
The following still worked up to version 1.4.2, with version 1.5.0 images are no longer deleted:
Note: There is no log output or error message
The text was updated successfully, but these errors were encountered: