Skip to content

Commit

Permalink
Improve method of deriving repo name from pullspec
Browse files Browse the repository at this point in the history
Theoretically, this works if the IMAGE reference contains a port number.

Co-authored-by: Adam Cmiel <[email protected]>
  • Loading branch information
ralphbean and chmeliik authored Jul 8, 2024
1 parent 1478c32 commit a9b3e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion task/oci-copy/0.1/oci-copy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ spec:
echo "Extracting artifact_type"
ARTIFACT_TYPE=$(cat "$(pwd)/source/$OCI_COPY_FILE" | yq '.artifact_type')
REPO=$(echo ${IMAGE} | awk -F ':' '{print $1}')
REPO=${IMAGE%:*}
echo "Found that ${REPO} is the repository for ${IMAGE}"
cat >artifact-manifest.json <<EOL
Expand Down

0 comments on commit a9b3e9c

Please sign in to comment.