Skip to content

Commit

Permalink
Add description annotations to multi arch image (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidey79 authored Jun 18, 2024
2 parents b4fbbce + bd968f6 commit 84223fc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ jobs:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
with:
images: |
ghcr.io/${{ github.repository_owner }}/fhem-docker
Expand Down Expand Up @@ -428,6 +430,8 @@ jobs:
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
with:
images: |
ghcr.io/${{ github.repository_owner }}/fhem-docker
Expand Down Expand Up @@ -460,6 +464,7 @@ jobs:
cache-to: type=gha,mode=max,scope=full_linux/cross-${{ matrix.dockerfile }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
build-args: |
BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
IMAGE_VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
Expand All @@ -472,6 +477,8 @@ jobs:
- name: Docker meta
id: meta_base
uses: docker/metadata-action@v5
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
with:
images: |
ghcr.io/${{ github.repository_owner }}/fhem-minimal-docker
Expand Down Expand Up @@ -503,6 +510,7 @@ jobs:
type=gha,scope=full_linux/amd64-${{ matrix.dockerfile }}
type=gha,scope=full_linux/cross-${{ matrix.dockerfile }}
tags: ${{ steps.meta_base.outputs.tags }}
annotations: ${{ steps.meta_base.outputs.annotations }}
labels: ${{ steps.meta_base.outputs.labels }}
build-args: |
BUILD_DATE=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
Expand Down

0 comments on commit 84223fc

Please sign in to comment.