Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: rabbitmqoperator/messaging-topology-operator
images: |
rabbitmqoperator/messaging-topology-operator
quay.io/rabbitmqoperator/messaging-topology-operator
# generate Docker tags based on the following events/attributes
tags: |
type=sha
Expand All @@ -97,6 +99,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to Quay.io
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/login-action@v3
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}

- name: Build and push
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: docker/build-push-action@v6
Expand Down Expand Up @@ -138,7 +147,7 @@ jobs:
kustomize edit set image \
rabbitmqoperator/messaging-topology-operator-dev=rabbitmqoperator/messaging-topology-operator:"${RELEASE_VERSION}"
popd
make generate-manifests
make generate-manifests QUAY_IO_OPERATOR_IMAGE=quay.io/rabbitmqoperator/messaging-topology-operator:"${RELEASE_VERSION}"

- name: Upload operator manifests
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -248,6 +257,8 @@ jobs:
files: |
messaging-topology-operator.yaml
messaging-topology-operator-with-certmanager.yaml
messaging-topology-operator-quay-io.yaml
messaging-topology-operator-with-certmanager-quay-io.yaml
generate_release_notes: true
draft: true
fail_on_unmatched_files: true
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,16 @@ api-reference:
--output-path ./docs/api/rabbitmq.com.ref.asciidoc \
--max-depth 30

QUAY_IO_OPERATOR_IMAGE ?= quay.io/rabbitmqoperator/messaging-topology-operator:latest
## used in CI pipeline to create release artifact
.PHONY: generate-manifests
generate-manifests:
generate-manifests: | $(YTT)
mkdir -p releases
kustomize build config/installation/ > releases/messaging-topology-operator.bak
sed '/CERTIFICATE_NAMESPACE.*CERTIFICATE_NAME/d' releases/messaging-topology-operator.bak > releases/messaging-topology-operator.yaml
$(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
kustomize build config/installation/cert-manager/ > releases/messaging-topology-operator-with-certmanager.yaml
$(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

# Run go fmt against code
fmt:
Expand Down
Loading