From 7dad400332c6c969d6e03db7a0a1c1ca8d6ad9af Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sat, 14 Mar 2026 08:37:10 +0100 Subject: [PATCH] Update Image Metadata step in build workflow --- .github/workflows/build.yml | 44 ++++++++++++------------------------- 1 file changed, 14 insertions(+), 30 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 400bdd2..0fe9f78 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -74,36 +74,20 @@ jobs: # Image metadata for https://artifacthub.io/ - This is optional but is highly recommended so we all can get a index of all the custom images # The metadata by itself is not going to do anything, you choose if you want your image to be on ArtifactHub or not. - #- name: Image Metadata - # uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v5 - # id: metadata - # with: - # # This generates all the tags for your image, you can add custom tags here too! - # # Default tags are "$DEFAULT_TAG" and "$DEFAULT_TAG.$date". - # tags: | - # type=raw,value=${{ env.DEFAULT_TAG }} - # type=raw,value=${{ env.DEFAULT_TAG }}.{{date 'YYYYMMDD'}} - # type=raw,value={{date 'YYYYMMDD'}} - # type=sha,enable=${{ github.event_name == 'pull_request' }} - # type=ref,event=pr - # labels: | - # io.artifacthub.package.readme-url=https://raw.githubusercontent.com/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}/${{ github.sha }}/README.md - # org.opencontainers.image.created=${{ steps.date.outputs.date }} - # org.opencontainers.image.description=${{ env.IMAGE_DESC }} - # org.opencontainers.image.documentation=https://raw.githubusercontent.com/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}/${{ github.sha }}/README.md - # org.opencontainers.image.source=https://github.com/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}/blob/${{ github.sha }}/Containerfile - # org.opencontainers.image.title=${{ env.IMAGE_NAME }} - # org.opencontainers.image.url=https://github.com/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}/tree/${{ github.sha }} - # org.opencontainers.image.vendor=${{ github.repository_owner }} - # org.opencontainers.image.version=${{ env.DEFAULT_TAG }}.{{date 'YYYYMMDD'}} - # io.artifacthub.package.deprecated=false - # io.artifacthub.package.keywords=${{ env.IMAGE_KEYWORDS }} - # io.artifacthub.package.license=Apache-2.0 - # io.artifacthub.package.logo-url=${{ env.IMAGE_LOGO_URL }} - # io.artifacthub.package.prerelease=false - # containers.bootc=1 - # sep-tags: " " - # sep-annotations: " " + - name: Image Metadata + uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v5 + id: metadata + with: + # This generates all the tags for your image, you can add custom tags here too! + # Default tags are "$DEFAULT_TAG" and "$DEFAULT_TAG.$date". + tags: | + type=raw,value=${{ env.DEFAULT_TAG }} + type=raw,value=${{ env.DEFAULT_TAG }}.{{date 'YYYYMMDD'}} + type=raw,value={{date 'YYYYMMDD'}} + type=sha,enable=${{ github.event_name == 'pull_request' }} + type=ref,event=pr + labels: | + containers.bootc=1 - name: Build Image id: build_image