Skip to content

Commit

Permalink
Login to container registry during manifest merge
Browse files Browse the repository at this point in the history
  • Loading branch information
garyttierney committed Oct 12, 2024
1 parent bb172c4 commit b00f15d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
with:
platforms: ${{ matrix.build_configuration.platform }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true
push: true
build-args: |
TARGET=${{ matrix.build_configuration.triple }}
TARGET_CPU=${{ matrix.build_configuration.cpu }}
Expand Down Expand Up @@ -109,6 +109,11 @@ jobs:

merge:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
needs:
- build
steps:
Expand All @@ -119,6 +124,13 @@ jobs:
pattern: digests-*
merge-multiple: true

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down

0 comments on commit b00f15d

Please sign in to comment.