Skip to content

Commit

Permalink
Removing duplicated string from registry (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
cniackz authored Apr 4, 2023
1 parent 08873a5 commit 4be5eed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olm-post-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for catalog in "${redhatCatalogs[@]}"; do
# Console Image in Digested form: sha256:xxxx
consoleImage=$(yq eval-all '.spec.install.spec.deployments[0].spec.template.spec.containers[0].image' bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml)
echo "consoleImage: ${consoleImage}"
consoleImageDigest=$(docker pull "quay.io/"${consoleImage} | grep Digest | awk -F ' ' '{print $2}')
consoleImageDigest=$(docker pull ${consoleImage} | grep Digest | awk -F ' ' '{print $2}')
echo "consoleImageDigest: ${consoleImageDigest}"
consoleImageDigest="quay.io/minio/console@${consoleImageDigest}"
yq -i ".spec.install.spec.deployments[0].spec.template.spec.containers[0].image |= (\"${consoleImageDigest}\")" bundles/$catalog/$RELEASE/manifests/$package.clusterserviceversion.yaml
Expand Down

0 comments on commit 4be5eed

Please sign in to comment.