Skip to content

Commit 467464e

Browse files
committed
Avoid manifest not found when pulling via sha digest on quay.io
1 parent 7a07794 commit 467464e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
echo "image_labels=quay.expires-after=2w" >> $GITHUB_OUTPUT
6060
fi
6161
echo "image_created=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
62+
echo "timestamp=$(date -u +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
6263
6364
- name: Login to quay.io
6465
if: github.actor != 'dependabot[bot]'
@@ -117,6 +118,7 @@ jobs:
117118
CREATED=${{ steps.vars.outputs.image_created }}
118119
tags: |
119120
quay.io/${{ env.IMAGE_REGISTRY_NAMESPACE }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.vars.outputs.image_tag }}
121+
quay.io/${{ env.IMAGE_REGISTRY_NAMESPACE }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.vars.outputs.image_tag }}-${{ steps.vars.outputs.timestamp }}
120122
platforms: linux/amd64,linux/arm64/v8
121123
labels: ${{ steps.vars.outputs.image_labels }}
122124
provenance: false
@@ -129,3 +131,4 @@ jobs:
129131
DST_IMAGE: ${{ env.IMAGE_REGISTRY_NAMESPACE }}/${{ env.IMAGE_REPOSITORY }}:${{ steps.vars.outputs.image_tag }}
130132
run: |
131133
docker buildx imagetools create ${{ env.SRC_IMAGE }} -t ${{ env.DST_IMAGE }}
134+
docker buildx imagetools create ${{ env.SRC_IMAGE }}-${{ steps.vars.outputs.timestamp }} -t ${{ env.DST_IMAGE }}-${{ steps.vars.outputs.timestamp }}

0 commit comments

Comments
 (0)