7070 env :
7171 QUAY_IO_OPERATOR_IMAGE : quay.io/rabbitmqoperator/cluster-operator:${{ steps.set_bundle_version.outputs.BUNDLE_VERSION }}
7272 BUNDLE_VERSION : ${{ steps.set_bundle_version.outputs.BUNDLE_VERSION }}
73- BUNDLE_REPLACES : ${{ steps.set_previous_version.outputs.PREVIOUS_VERSION }}
73+ BUNDLE_REPLACES : rabbitmq-cluster-operator. ${{ steps.set_previous_version.outputs.PREVIOUS_VERSION }}
7474 run : make -f olm.mk all
7575
7676 - name : Create OLM Package
@@ -176,10 +176,8 @@ jobs:
176176 - name : Create branch for OperatorHub PR
177177 env :
178178 BUNDLE_VERSION : ${{ needs.test-olm-package.outputs.olm_package_version }}
179- # RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
180- # ## operators/rabbitmq-cluster-operator
181179 GH_PROMPT_DISABLED : 1
182- GH_TOKEN : ${{ github.token }}
180+ GH_TOKEN : ${{ secrets.RABBITMQ_CI_TOKEN }}
183181 run : |
184182 git config user.name "rabbitmq-ci"
185183 git config user.email ${{ secrets.RABBITMQ_CI_EMAIL }}
@@ -189,11 +187,11 @@ jobs:
189187 mkdir -pv operators/rabbitmq-cluster-operator/"$BUNDLE_VERSION"
190188 cp -v -fR olm-package-ci/* ./operators/rabbitmq-cluster-operator/"$BUNDLE_VERSION"/
191189 git add operators/rabbitmq-cluster-operator
192- git commit -s -m "RabbitMQ Cluster Operator release $BUNDLE_VERSION"
190+ git commit -s -m "operator rabbitmq-cluster-operator release $BUNDLE_VERSION"
191+ git push --set-upstream origin "rabbitmq-cluster-operator-$BUNDLE_VERSION"
193192
194193 gh pr create --title "operator rabbitmq-cluster-operator (${{ env.BUNDLE_VERSION }})" \
195- --body "Update operator rabbitmq-cluster-operator (${{ needs.test-olm-package.outputs.olm_package_version }})" \
196- --dry-run
194+ --body "Update operator rabbitmq-cluster-operator (${{ needs.test-olm-package.outputs.olm_package_version }})"
197195
198196 publish-bundle-redhat-marketplace :
199197 name : PR Openshift marketplace
@@ -219,7 +217,14 @@ jobs:
219217 BUNDLE_VERSION : ${{ needs.test-olm-package.outputs.olm_package_version }}
220218 # RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
221219 GH_PROMPT_DISABLED : 1
222- GH_TOKEN : ${{ github.token }}
220+ GH_TOKEN : ${{ secrets.RABBITMQ_CI_TOKEN }}
221+ # IMPORTANT: this job does not open the PR automatically because the operator is configured differently in
222+ # RedHat marketplace CI. In RedHat Marketplace, we have semver-mode for update strategy, and in operatorhub
223+ # we have replaces-mode strategy.
224+ # https://k8s-operatorhub.github.io/community-operators/operator-ci-yaml/
225+ # As workaround, this job will create the branch with the new version, and a maintainer will make adjustments
226+ # before manually opening a PR.
227+ # TODO(Zerpet): make update strategy consistent
223228 run : |
224229 git config user.name "rabbitmq-ci"
225230 git config user.email ${{ secrets.RABBITMQ_CI_EMAIL }}
@@ -229,8 +234,5 @@ jobs:
229234 mkdir -pv operators/rabbitmq-cluster-operator/"$BUNDLE_VERSION"
230235 cp -v -fR olm-package-ci/* ./operators/rabbitmq-cluster-operator/"$BUNDLE_VERSION"/
231236 git add operators/rabbitmq-cluster-operator
232- git commit -s -m "RabbitMQ Cluster Operator release $BUNDLE_VERSION"
233-
234- gh pr create --title "operator rabbitmq-cluster-operator (${{ env.BUNDLE_VERSION }})" \
235- --body "Update operator rabbitmq-cluster-operator (${{ needs.test-olm-package.outputs.olm_package_version }})" \
236- --dry-run
237+ git commit -s -m "operator rabbitmq-cluster-operator release $BUNDLE_VERSION"
238+ git push --set-upstream origin "rabbitmq-cluster-operator-$BUNDLE_VERSION"
0 commit comments