-
Notifications
You must be signed in to change notification settings - Fork 42
Add support for annotations as an action input.
#135
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
base: main
Are you sure you want to change the base?
Conversation
|
Hey, this PR is probably a good idea. But here is a couple of things I noticed and that might be of interest for you. Indeed, while using Red Hat Also, I notice that Indeed, see this result below from my project My Containerfile contains these OCI annotations that I set with the
When building with
Latest buildah 1.41.0 has some kind of feature like But github runners for Linux are using Ubuntu 24.04 which is using older version of buildah v1.33.7. So I can not even try to set - name: Build the OCI image buildah oci true
id: buildah
uses: redhat-actions/buildah-build@v2
with:
#context: ${{ env.BUILDAH_BUILD_CONTEXT }}
containerfiles: |
${{ env.BASE_CONTAINERFILE_NAME }}
layers: true
oci: true
tags: ${{ steps.docker-metadata.outputs.tags }}
#labels: ${{ steps.docker-metadata.outputs.labels }}
extra-args: |
--created-annotation=true
--inherit-annotations=true
--inherit-labels=true
--unsetannotation "org.opencontainers.image.url"
--unsetlabel "org.opencontainers.image.url" |
|
Can we gladly ask you to review this PR @divyansh42? or may be @skoved can help here? |

Description
OCI image specification and Buildah supports Annotations in addition to Labels. Repositories such as GHCR rely on OCI Annotations for displaying image metadata like Description and Title about their UIs.
Related Issue(s)
Resolves #127
Checklist
Changes made
annotationsinput which passes its arguments as--annotationparameters to Buildah. Requires Image to be built in the OCI format.