-
Notifications
You must be signed in to change notification settings - Fork 33
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
Refactor inputs to support docker/metadata-action #50
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution 👍
This PR looks good to me.
Could please add test workflows, so that we can verify the changes.
Also it will be good if you can modify the inputs description in action.yml
and in README
as this PR change the uses of those.
Specifically, this PR introduces the concept of "full name tags", so we have to distinguish between the registry/image/tag use-cases (the old way) and the image-only use-case (the new way). It should be explained in the Inputs section and possibly in its own section if it is too complex to fit nicely there. We can also make this change ourselves, if you prefer. edit: this applies to the buildah PR too |
It would be great if we could capture this Maybe the logic should be lifted up to the entrypoint function and passed down through a parameter. |
@tetchel Please feel free to push documentation changes to the working branch. I have edit permission enabled for maintainers. The |
The issue with having same full image name tag on both docker and podman has been fixed by introducing a temporary storage Looking at the action run on my fork, it appears everything now function correctly except that my fork failed to push images due to lack of credentials. |
During the test I found a bug where occasionally the Here is an example of this bug: In the screenshot you can see that supposedly podman's timestamp is later, but the output is saying docker's timestamp is later: |
Thanks for bringing this up. |
@divyansh42 Looking at the commit history for test branch, I think you probably forgot the pre-commit hook? |
yeah, nvm I have done something wrong. Just figuring that out. Edit: Verified this again and it's working fine. Thanks for fixing this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR looks good to me.
I have suggested few minor changes (that was present earlier also, but I noticed that in this PR) that you may want to address. Otherwise, I think functionality-wise we are good.
But I'll let @tetchel to review the changes and approve the PR.
Can we combine workflows |
@divyansh42 Made some big change to the matrix build. Took a while for me to get the syntax correct, but now it uses one job definition to generate all 16 jobs in the matrix. You can see it here: https://github.com/ntkme/push-to-registry/actions/runs/1321168922 (all push failed because quay.io credentials does not exist on my fork). |
@divyansh42 Commit 213d6c4 failed the login test because |
Yeah, it cleared the auth file, just about to say that. |
@tetchel Done with refactoring and added documentation. PTAL. Thanks! |
Forgot the pre-commit hook. Let me update it. |
great change with the matrix to generate building w/ docker/podman/fqin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for addressing those reviews.
Looks good now 👍
We have released this feature in |
This PR adds support for docker/metadata-action@v2. See redhat-actions/buildah-build#74 and redhat-actions/buildah-build#76.
Description
Support tags input in full image name form. When full image name form is used, input image and input registry would be ignored.
Related Issue(s)
redhat-actions/buildah-build#74
redhat-actions/buildah-build#76
Checklist
Changes made
Support docker/metadata-action