Skip to content

Commit ff9a1ed

Browse files
committed
Additionally publish to quay.io.
1 parent e3e676f commit ff9a1ed

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ jobs:
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
@@ -97,6 +99,13 @@ jobs:
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
@@ -248,6 +257,8 @@ jobs:
248257
files: |
249258
messaging-topology-operator.yaml
250259
messaging-topology-operator-with-certmanager.yaml
260+
messaging-topology-operator-quay-io.yaml
261+
messaging-topology-operator-with-certmanager-quay-io.yaml
251262
generate_release_notes: true
252263
draft: true
253264
fail_on_unmatched_files: true

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,16 @@ 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.yaml
163165
kustomize build config/installation/cert-manager/ > releases/messaging-topology-operator-with-certmanager.yaml
166+
$(YTT) -f releases/messaging-topology-with-certmanager.yaml -f config/ytt-overlays/change_deployment_image.yml --data-value operator_image=$(QUAY_IO_OPERATOR_IMAGE) > releases/messaging-topology-operator-with-certmanager-quay-io.yaml
164167

165168
# Run go fmt against code
166169
fmt:

0 commit comments

Comments
 (0)