Update Image Metadata step in build workflow

This commit is contained in:
humocs-man
2026-03-14 08:37:10 +01:00
committed by GitHub
parent 6aa02e3ac3
commit 7dad400332
+14 -30
View File
@@ -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