Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 8aee8a0

Browse files
author
odacremolbap
committed
update broker images references at release
1 parent 19a5826 commit 8aee8a0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ DIST_DIR ?= $(OUTPUT_DIR)
2323
KO ?= ko
2424
KOFLAGS ?=
2525
IMAGE_TAG ?= $(shell git rev-parse HEAD)
26+
BROKERS_IMAGE_TAG ?= $(IMAGE_TAG)
2627

2728
# Go build variables
2829
GO ?= go
@@ -97,6 +98,10 @@ ifeq ($(shell echo ${IMAGE_TAG} | egrep "${TAG_REGEX}"),${IMAGE_TAG})
9798
endif
9899
$(KO) resolve $(KOFLAGS) -B -t $(IMAGE_TAG) --tag-only -f config/ -l '!triggermesh.io/crd-install' >> $(DIST_DIR)/triggermesh-core.yaml
99100

101+
# Update broker image references.
102+
sed -i 's/memory-broker:latest/memory-broker:$(BROKERS_IMAGE_TAG)/g' $(DIST_DIR)/triggermesh-core.yaml
103+
sed -i 's/redis-broker:latest/redis-broker:$(BROKERS_IMAGE_TAG)/g' $(DIST_DIR)/triggermesh-core.yaml
104+
100105
gen-apidocs: ## Generate API docs
101106
GOPATH="" OUTPUT_DIR=$(DOCS_OUTPUT_DIR) ./hack/gen-api-reference-docs.sh
102107

0 commit comments

Comments
 (0)