Skip to content

Commit

Permalink
try to use metadata action for extracting container annotatations
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Apr 30, 2024
1 parent 25f570a commit 767f73d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}

- name: Extract docker metadata
id: meta
uses: docker/[email protected]
with:
images: ghcr.io/${{ github.repository }}

- name: Build and push container image
uses: docker/[email protected]
id: docker_build
Expand Down Expand Up @@ -400,6 +406,8 @@ jobs:
tags: |
${{ steps.extract_branch.outputs.unique_tag }}
${{ steps.extract_branch.outputs.branch_tag }}
annotations: |
${{ steps.meta.outputs.annotations }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
Expand Down

0 comments on commit 767f73d

Please sign in to comment.