Skip to content

Commit

Permalink
Set annotation on index level
Browse files Browse the repository at this point in the history
  • Loading branch information
alorence committed Dec 13, 2024
1 parent 94697a6 commit 0aab8ce
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ jobs:
id-token: write

steps:
- name: Check out the repo
uses: actions/[email protected]

- name: Set up QEMU
uses: docker/[email protected]

Expand All @@ -39,27 +36,27 @@ jobs:
- name: Configure metadata
id: meta
uses: docker/[email protected]
env:
DOCKER_METADATA_ANNOTATIONS_LEVELS: index,manifest
with:
images: ${{ env.IMAGE_NAME }}
annotations: |
tags: |
type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
type=semver,pattern={{major}},value=${{ env.VERSION }}
labels: |
org.opencontainers.image.title=traefik-forward-auth
org.opencontainers.image.description="Minimal forward authentication service that provides Google/OpenID oauth based login and authentication for the traefik reverse proxy"
org.opencontainers.image.authors="Thom Seddon"
org.opencontainers.image.url=https://github.com/flokod/traefik-forward-auth
org.opencontainers.image.source=https://github.com/thomseddon/traefik-forward-auth
org.opencontainers.image.version=${{ env.VERSION }}
org.opencontainers.image.licenses=MIT
tags: |
type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
type=semver,pattern={{major}},value=${{ env.VERSION }}
- name: Build and push Docker image
id: push
uses: docker/[email protected]
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand Down

0 comments on commit 0aab8ce

Please sign in to comment.