diff --git a/.github/workflows/build-oss.yml b/.github/workflows/build-oss.yml index 32b0467d03..d964ca4206 100644 --- a/.github/workflows/build-oss.yml +++ b/.github/workflows/build-oss.yml @@ -129,6 +129,8 @@ jobs: io.artifacthub.package.maintainers=[{"name":"NGINX Inc","email":"kubernetes@nginx.com"}] io.artifacthub.package.license=Apache-2.0 io.artifacthub.package.keywords=kubernetes,ingress,nginx,controller + env: + DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index - name: Build Docker image uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0 @@ -141,6 +143,7 @@ jobs: target: goreleaser tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + annotations: ${{ github.event_name != 'pull_request' && steps.meta.outputs.annotations || '' }} platforms: ${{ github.event_name != 'pull_request' && ! startsWith(github.ref, 'refs/heads/release-') && inputs.platforms || '' }} load: ${{ github.event_name == 'pull_request' || startsWith(github.ref, 'refs/heads/release-') }} push: ${{ github.event_name != 'pull_request' && ! startsWith(github.ref, 'refs/heads/release-') }} diff --git a/.github/workflows/build-plus.yml b/.github/workflows/build-plus.yml index b3c2443555..113045142a 100644 --- a/.github/workflows/build-plus.yml +++ b/.github/workflows/build-plus.yml @@ -142,6 +142,8 @@ jobs: type=semver,pattern={{major}}.{{minor}} labels: | org.opencontainers.image.description=NGINX Plus Ingress Controller for Kubernetes + env: + DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index - name: NAP modules id: nap_modules @@ -160,6 +162,7 @@ jobs: target: ${{ inputs.target }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + annotations: ${{ github.event_name != 'pull_request' && steps.meta.outputs.annotations || '' }} platforms: ${{ github.event_name != 'pull_request' && inputs.platforms || '' }} load: ${{ github.event_name == 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}