Skip to content

Commit ced63ed

Browse files
committed
Fix copy image github action
Signed-off-by: Matheus Pimenta <[email protected]>
1 parent c4e029d commit ced63ed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/actions/copy-image/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ runs:
4646
LATEST: ${{ inputs.latest }}
4747
run: |
4848
digest=$(cat ${COMPONENT}-digest.txt)
49-
src=docker://ghcr.io/matheuscscp/gke-metadata-server/${SOURCE_REPOSITORY}@${digest}
50-
dst=docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}@${digest}
51-
skopeo copy $src $dst
52-
skopeo copy $dst docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}:$(yq .${COMPONENT} versions.yaml)
49+
src=ghcr.io/matheuscscp/gke-metadata-server/${SOURCE_REPOSITORY}@${digest}
50+
dst=ghcr.io/matheuscscp/${TARGET_REPOSITORY}@${digest}
51+
skopeo copy docker://$src docker://$dst
52+
skopeo copy docker://$dst docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}:$(yq .${COMPONENT} versions.yaml)
5353
if [ "$LATEST" != "skip" ]; then
54-
skopeo copy $dst docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}:latest
54+
skopeo copy docker://$dst docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}:latest
5555
fi
5656
echo "image-with-digest=$dst" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)