File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 7878 id : meta
7979 uses : docker/metadata-action@v5
8080 with :
81- images : rabbitmqoperator/messaging-topology-operator
81+ images : |
82+ rabbitmqoperator/messaging-topology-operator
83+ quay.io/rabbitmqoperator/messaging-topology-operator
8284 # generate Docker tags based on the following events/attributes
8385 tags : |
8486 type=sha
9799 username : ${{ secrets.DOCKERHUB_USERNAME }}
98100 password : ${{ secrets.DOCKERHUB_TOKEN }}
99101
102+ - name : Login to Quay.io
103+ if : ${{ startsWith(github.ref, 'refs/tags/v') }}
104+ uses : docker/login-action@v3
105+ with :
106+ username : ${{ secrets.QUAY_USERNAME }}
107+ password : ${{ secrets.QUAY_ROBOT_TOKEN }}
108+
100109 - name : Build and push
101110 if : ${{ startsWith(github.ref, 'refs/tags/v') }}
102111 uses : docker/build-push-action@v6
@@ -138,7 +147,7 @@ jobs:
138147 kustomize edit set image \
139148 rabbitmqoperator/messaging-topology-operator-dev=rabbitmqoperator/messaging-topology-operator:"${RELEASE_VERSION}"
140149 popd
141- make generate-manifests
150+ make generate-manifests QUAY_IO_OPERATOR_IMAGE=quay.io/rabbitmqoperator/messaging-topology-operator:"${RELEASE_VERSION}"
142151
143152 - name : Upload operator manifests
144153 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -154,12 +154,14 @@ api-reference:
154154 --output-path ./docs/api/rabbitmq.com.ref.asciidoc \
155155 --max-depth 30
156156
157+ QUAY_IO_OPERATOR_IMAGE ?= quay.io/rabbitmqoperator/messaging-topology-operator:latest
157158# # used in CI pipeline to create release artifact
158159.PHONY : generate-manifests
159- generate-manifests :
160+ generate-manifests : | $( YTT )
160161 mkdir -p releases
161162 kustomize build config/installation/ > releases/messaging-topology-operator.bak
162163 sed ' /CERTIFICATE_NAMESPACE.*CERTIFICATE_NAME/d' releases/messaging-topology-operator.bak > releases/messaging-topology-operator.yaml
164+ $(YTT ) -f releases/messaging-topology-operator.yml -f config/ytt-overlays/change_deployment_image.yml --data-value operator_image=$(QUAY_IO_OPERATOR_IMAGE ) > releases/messaging-topology-operator-quay-io.yml
163165 kustomize build config/installation/cert-manager/ > releases/messaging-topology-operator-with-certmanager.yaml
164166
165167# Run go fmt against code
You can’t perform that action at this time.
0 commit comments