Skip to content

Commit

Permalink
.github: attempt to fix digest push
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Aug 13, 2023
1 parent 57dbfe0 commit 1bebe3a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1bebe3a

Please sign in to comment.