Skip to content

Commit

Permalink
crane cp targets should not have digest
Browse files Browse the repository at this point in the history
because when they do ghcr.io images don't get proper tags
  • Loading branch information
solsson committed Nov 24, 2024
1 parent 19d676b commit cbd4288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
id: imageMariadbTo
uses: mikefarah/[email protected]
with:
cmd: yq '.images[0].newName + ":" + .images[0].newTag' 'base/kustomization.yaml'
cmd: yq '.images[0].newName + ":" + .images[0].newTag | sub("(.*)@.*", "${1}")' 'base/kustomization.yaml'
-
name: Get exporter docker hub image
id: imageExporterFrom
Expand All @@ -51,7 +51,7 @@ jobs:
id: imageExporterTo
uses: mikefarah/[email protected]
with:
cmd: yq '.images[1].newName + ":" + .images[1].newTag' 'base/kustomization.yaml'
cmd: yq '.images[1].newName + ":" + .images[1].newTag | sub("(.*)@.*", "${1}")' 'base/kustomization.yaml'
-
run: |
crane cp ${{ steps.imageMariadbFrom.outputs.result }} ${{ steps.imageMariadbTo.outputs.result }}
Expand Down

0 comments on commit cbd4288

Please sign in to comment.