Skip to content

Commit

Permalink
👻 replace incorrect sed version replace (#230)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
(cherry picked from commit 0ee9dd2)
  • Loading branch information
jmontleon authored May 16, 2023
1 parent 6c337ee commit 61cc7f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/konveyor-operator-publish-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ popd

REGISTRY_HOST="quay.io"
REGISTRY_ORG="konveyor"
UNRELEASED_SEMVER="v99.0.0"
OPERATOR_MANIFESTS="bundle/manifests"
OPERATOR_METADATA="bundle/metadata"
CSV="konveyor-operator.clusterserviceversion.yaml"
Expand Down Expand Up @@ -132,7 +131,8 @@ echo " update createdAt time"
CREATED_AT=$(date +"%Y-%m-%dT%H:%M:%SZ") /tmp/yq eval --exit-status --inplace '.metadata.annotations["createdAt"] |= strenv(CREATED_AT)' "${CO_CSV}"

echo " update operator version"
sed -i "s/${UNRELEASED_SEMVER}/${OPERATOR_VERSION}/" "${CO_CSV}"
/tmp/yq eval --exit-status --inplace \
'.metadata.name |= "konveyor-operator.v" + strenv(OPERATOR_VERSION)' "${CO_CSV}"

echo " adding replaces"
if [ -z "${PREV_OPERATOR_VERSION}" ]; then
Expand Down

0 comments on commit 61cc7f0

Please sign in to comment.