Skip to content

Commit b5bf488

Browse files
committed
fix double tag
1 parent 427bf98 commit b5bf488

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/actions/promote-image/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
image:
33
required: true
44
description: Image name
5+
run-tag:
6+
required: true
7+
description: Tag for this run
58
latest:
69
required: false
710
description: Tag image as latest
@@ -40,4 +43,4 @@ runs:
4043
done
4144
4245
# Create/overwrite manifest tags pointing at the original digest
43-
docker buildx imagetools create "${ARGS[@]}" "${{ inputs.image }}"
46+
docker buildx imagetools create "${ARGS[@]}" "${{ inputs.image }}:${{ inputs.run-tag }}"

.github/workflows/ci-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,6 @@ jobs:
122122
- name: Build ${{ matrix.image }}
123123
uses: ./.github/actions/promote-image
124124
with:
125-
image: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.image }}:rn-${{ github.run_number }}-a${{ github.run_attempt }}
125+
image: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.image }}
126+
run-tag: rn-${{ github.run_number }}-a${{ github.run_attempt }}
126127
latest: ${{ inputs.latest || false }}

0 commit comments

Comments
 (0)