Skip to content

Commit

Permalink
feat: add annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
tobikris committed Oct 7, 2024
1 parent d5b1c84 commit 0045af7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha
labels: |
org.opencontainers.image.description=Busybox image with talosctl (latest)
annotations: |
org.opencontainers.image.description=Busybox image with talosctl (latest)
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Build and push Docker image
if: steps.changed-files.outputs.any_changed == 'true'
Expand All @@ -64,6 +70,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ jobs:
type=ref,event=tag
type=raw,value=latest
type=sha
labels: |
org.opencontainers.image.description=Busybox image with talosctl (latest)
annotations: |
org.opencontainers.image.description=Busybox image with talosctl (latest)
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index

- name: Build and push Docker image
id: push
Expand All @@ -54,6 +60,7 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
Expand Down

0 comments on commit 0045af7

Please sign in to comment.