Skip to content

Commit

Permalink
Fix copy image github action
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Pimenta <[email protected]>
  • Loading branch information
matheuscscp committed Feb 14, 2025
1 parent c4e029d commit ced63ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/actions/copy-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ runs:
LATEST: ${{ inputs.latest }}
run: |
digest=$(cat ${COMPONENT}-digest.txt)
src=docker://ghcr.io/matheuscscp/gke-metadata-server/${SOURCE_REPOSITORY}@${digest}
dst=docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}@${digest}
skopeo copy $src $dst
skopeo copy $dst docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}:$(yq .${COMPONENT} versions.yaml)
src=ghcr.io/matheuscscp/gke-metadata-server/${SOURCE_REPOSITORY}@${digest}
dst=ghcr.io/matheuscscp/${TARGET_REPOSITORY}@${digest}
skopeo copy docker://$src docker://$dst
skopeo copy docker://$dst docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}:$(yq .${COMPONENT} versions.yaml)
if [ "$LATEST" != "skip" ]; then
skopeo copy $dst docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}:latest
skopeo copy docker://$dst docker://ghcr.io/matheuscscp/${TARGET_REPOSITORY}:latest
fi
echo "image-with-digest=$dst" >> $GITHUB_OUTPUT

0 comments on commit ced63ed

Please sign in to comment.