Skip to content

Commit a2ff7e2

Browse files
DanielePalaiaDanielePalaia
and
DanielePalaia
authored
reverting replaces/skip fields for operatorhub bundle publication (#942)
Co-authored-by: DanielePalaia <daniele985@@gmail.com>
1 parent afc8979 commit a2ff7e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/testing-and-publishing-OLM-bundle.yml

+3
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,10 @@ jobs:
218218
git branch rabbitmq-messaging-topology-operator-$BUNDLE_VERSION
219219
git checkout rabbitmq-messaging-topology-operator-$BUNDLE_VERSION
220220
221+
REPLACE_VERSION=$(ls -1v ./operators/rabbitmq-messaging-topology-operator/ | tail -2 | head -1)
222+
221223
cp -v -fR ./olm-package-ci/"$BUNDLE_VERSION" ./operators/rabbitmq-messaging-topology-operator/
224+
sed -i -e "s/replaces: null/replaces: rabbitmq-messaging-topology-operator.v$REPLACE_VERSION/g" ./operators/rabbitmq-messaging-topology-operator/$BUNDLE_VERSION/manifests/rabbitmq.clusterserviceversion.yaml
222225
sed -i -e "s/latest/$BUNDLE_VERSION/g" ./operators/rabbitmq-messaging-topology-operator/"$BUNDLE_VERSION"/manifests/rabbitmq.clusterserviceversion.yaml
223226
git add operators/rabbitmq-messaging-topology-operator
224227
git commit -s -m "RabbitMQ Topology Operator release $BUNDLE_VERSION"

0 commit comments

Comments
 (0)