From 1bebe3adef2f6df3a7f370bd13e9ee6128a014f2 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 13 Aug 2023 08:38:45 +0200 Subject: [PATCH] .github: attempt to fix digest push Signed-off-by: Joachim Wiberg --- .github/workflows/container.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 898f30a..0764b3a 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -54,11 +54,10 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: docker/build-push-action@v4 with: - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta.outputs.tags }} + context: . labels: ${{ steps.meta.outputs.labels }} platforms: ${{ matrix.platform }} - outputs: type=image,name=target,push-by-digest=true,name-canonical=true,annotation-index.org.opencontainers.image.description=Micro Emacs text editor for ${{ matrix.platform }} + outputs: type=image,name=target,push-by-digest=true,name-canonical=true,push=true,annotation-index.org.opencontainers.image.description=Micro Emacs text editor for ${{ matrix.platform }} - name: Export digest run: | mkdir -p /tmp/digests @@ -87,6 +86,12 @@ jobs: uses: docker/metadata-action@v4 with: images: ${{ env.REGISTRY_IMAGE }} + - name: Log in to GHCR + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub uses: docker/login-action@v2 with: