Skip to content

Commit cbd4288

Browse files
committed
crane cp targets should not have digest
because when they do ghcr.io images don't get proper tags
1 parent 19d676b commit cbd4288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/images.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
id: imageMariadbTo
4040
uses: mikefarah/[email protected]
4141
with:
42-
cmd: yq '.images[0].newName + ":" + .images[0].newTag' 'base/kustomization.yaml'
42+
cmd: yq '.images[0].newName + ":" + .images[0].newTag | sub("(.*)@.*", "${1}")' 'base/kustomization.yaml'
4343
-
4444
name: Get exporter docker hub image
4545
id: imageExporterFrom
@@ -51,7 +51,7 @@ jobs:
5151
id: imageExporterTo
5252
uses: mikefarah/[email protected]
5353
with:
54-
cmd: yq '.images[1].newName + ":" + .images[1].newTag' 'base/kustomization.yaml'
54+
cmd: yq '.images[1].newName + ":" + .images[1].newTag | sub("(.*)@.*", "${1}")' 'base/kustomization.yaml'
5555
-
5656
run: |
5757
crane cp ${{ steps.imageMariadbFrom.outputs.result }} ${{ steps.imageMariadbTo.outputs.result }}

0 commit comments

Comments
 (0)