-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crane cp targets should not have digest
because when they do ghcr.io images don't get proper tags
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} | ||
|