Skip to content

Commit

Permalink
fix push digest error
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Oct 2, 2023
1 parent 108097f commit 6bcba89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish_docker_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,13 @@ jobs:
prefix=arch_,onlatest=true
suffix=_${{ matrix.platform }},onlatest=true
- name: Build & push docker ${{ matrix.platform }}
id: push
- name: Build & push digest docker ${{ matrix.platform }}
id: build
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ matrix.platform }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.matrix_meta.outputs.tags }}
labels: ${{ steps.matrix_meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true
cache-from: type=gha
Expand All @@ -85,7 +84,7 @@ jobs:
- name: Export digest
run: |
mkdir -p /tmp/digests/${GITHUB_SHA}
digest="${{ steps.push.outputs.digest }}"
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${GITHUB_SHA}/${digest#sha256:}"
- name: Push docker tags ${{ matrix.platform }}
Expand Down

0 comments on commit 6bcba89

Please sign in to comment.