Skip to content

Commit dd718d5

Browse files
authored
Fix build
1 parent 6f2daf4 commit dd718d5

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: docker/build-push-action@v6
4747
with:
4848
push: ${{ github.event_name != 'pull_request' }}
49-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.ref }}-${{ matrix.arch }}
49+
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}-${{ matrix.arch }}
5050
platforms: ${{ matrix.platform }}
5151
cache-from: type=gha
5252
cache-to: type=gha,mode=max
@@ -63,16 +63,16 @@ jobs:
6363

6464
- name: Create and push multi-arch manifest
6565
run: |
66-
docker manifest create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref }} \
67-
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.ref }}-amd64 \
68-
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.ref }}-arm64
66+
docker manifest create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} \
67+
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}-amd64 \
68+
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:sha-${{ github.sha }}-arm64
6969
70-
docker manifest push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref }}
70+
docker manifest push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
7171
7272
# Optionally tag 'latest' on main
7373
if [[ "${GITHUB_REF}" == "refs/heads/main" ]]; then
7474
docker manifest create ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
75-
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref }}-amd64 \
76-
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref }}-arm64
75+
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64 \
76+
--amend ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
7777
docker manifest push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
7878
fi

0 commit comments

Comments
 (0)