Skip to content

Commit

Permalink
Add dockers tags that are present on push to main branch. (#445)
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Brown <[email protected]>
  • Loading branch information
calebbrown authored Mar 19, 2024
1 parent f702e50 commit dc003f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5
id: docker-metadata
with:
images: docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
images: docker.pkg.github.com/${{ github.repository }}/${{ env.IMAGE_NAME }}
labels: |
org.opencontainers.image.source=${{ github.repositoryUrl }}
org.opencontainers.image.description="This is a container for the Package Feeds process"
Expand All @@ -55,9 +55,11 @@ jobs:
latest=auto
# Using the {{version}} placeholder to automatically detect the version from the git tag
# without the prefix "v".
# We'll also generate tags for PRs and semver tags.
# We'll also generate tags for commit sha, main branch changes and semver tags.
tags: |
type=sha
type=ref,event=tag
type=ref,event=branch
type=semver,pattern={{version}}
- name: Build image
Expand All @@ -77,4 +79,4 @@ jobs:

- name: Sign the image
run: |
cosign sign --key cosign.key docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME:${{ steps.meta.outputs.tags }}
cosign sign --key cosign.key docker.pkg.github.com/${{ github.repository }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}

0 comments on commit dc003f4

Please sign in to comment.