Skip to content

Commit

Permalink
WIP - use PAT token
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
Zerpet committed Aug 28, 2024
1 parent b4e11b5 commit 57674a8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/testing_and_publishing_OLM_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,14 @@ jobs:
with:
repository: rabbitmq/community-operators
path: ./community-operators
token: ${{ secrets.RABBITMQ_CI_TOKEN }}

- name: Checkout community-operators-prod fork (Openshift Ecosystem)
uses: actions/checkout@v4
with:
repository: rabbitmq/community-operators-prod
path: ./community-operators-prod
token: ${{ secrets.RABBITMQ_CI_TOKEN }}

- name: Download OLM artifact
uses: actions/download-artifact@v4
Expand All @@ -214,8 +216,8 @@ jobs:
- name: Create branch for OperatorHub PR
env:
BUNDLE_VERSION: ${{ needs.test-olm-package.outputs.olm_package_version }}
# RABBITMQ_CI_EMAIL: https://tpe-vault-rock.eng.vmware.com/ui/vault/secrets/secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
# RABBITMQ_CI_TOKEN: https://tpe-vault-rock.eng.vmware.com/ui/vault/secrets/secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
# RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
# RABBITMQ_CI_TOKEN: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
run: |
mkdir -p community-operators/operators/rabbitmq-cluster-operator
pushd community-operators/operators/rabbitmq-cluster-operator || exit 1
Expand All @@ -230,14 +232,14 @@ jobs:
sed -i -e "s/latest/$BUNDLE_VERSION/g" ./$BUNDLE_VERSION/manifests/rabbitmq.clusterserviceversion.yaml
git add .
git commit -s -m "RabbitMQ operator new release"
git push https://rabbitmq-ci:"${{ secrets.RABBITMQ_CI_TOKEN }}"@github.com/rabbitmq/community-operators
git push
popd
- name: Create branch for Openshift Ecosystem PR
env:
BUNDLE_VERSION: ${{ needs.test-olm-package.outputs.olm_package_version }}
# RABBITMQ_CI_EMAIL: https://tpe-vault-rock.eng.vmware.com/ui/vault/secrets/secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
# RABBITMQ_CI_TOKEN: https://tpe-vault-rock.eng.vmware.com/ui/vault/secrets/secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
# RABBITMQ_CI_EMAIL: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
# RABBITMQ_CI_TOKEN: secret_rabbitmq/kv/Shared-Shared-RabbitMQ%2Frabbitmq-ci/details
run: |
cd community-operators-prod/operators/rabbitmq-cluster-operator
git config --local user.name "rabbitmq-ci"
Expand All @@ -252,4 +254,4 @@ jobs:
sed -i -e "s/latest/$BUNDLE_VERSION/g" ./$BUNDLE_VERSION/manifests/rabbitmq.clusterserviceversion.yaml
git add .
git commit -s -m "RabbitMQ operator new release"
git push https://rabbitmq-ci:"${{ secrets.RABBITMQ_CI_TOKEN }}"@github.com/rabbitmq/community-operators-prod
git push

0 comments on commit 57674a8

Please sign in to comment.