Skip to content

Commit e75011a

Browse files
committed
ci: publish to single image tag, then retag and push
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent c994345 commit e75011a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
with:
4343
images: |
4444
${{ env.IMAGE_NAME }}
45-
ghcr.io/${{ env.IMAGE_NAME }}
4645
flavor: |
4746
latest=false
4847
suffix=-amd64
@@ -69,6 +68,9 @@ jobs:
6968
run: |
7069
rm -rf /tmp/.buildx-cache
7170
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
71+
- run: docker pull ${{ steps.meta.outputs.tags }}
72+
- run: docker tag ${{ steps.meta.outputs.tags }} ghcr.io/${{ steps.meta.outputs.tags }}
73+
- run: docker push ghcr.io/${{ steps.meta.outputs.tags }}
7274

7375
build-arm64:
7476
runs-on: self-hosted
@@ -100,7 +102,6 @@ jobs:
100102
with:
101103
images: |
102104
${{ env.IMAGE_NAME }}
103-
ghcr.io/${{ env.IMAGE_NAME }}
104105
flavor: |
105106
latest=false
106107
suffix=-arm64v8
@@ -127,6 +128,9 @@ jobs:
127128
run: |
128129
rm -rf /tmp/.buildx-cache
129130
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
131+
- run: docker pull ${{ steps.meta.outputs.tags }}
132+
- run: docker tag ${{ steps.meta.outputs.tags }} ghcr.io/${{ steps.meta.outputs.tags }}
133+
- run: docker push ghcr.io/${{ steps.meta.outputs.tags }}
130134

131135
multi-arch-manifest:
132136
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)