From 28fa387dff189b5b8ec949bb136538229bc24d29 Mon Sep 17 00:00:00 2001 From: Travis Nielsen Date: Mon, 5 May 2025 13:44:07 -0600 Subject: [PATCH] ci: only publish docs in master and tagged releases Until now, docs have been published for every master and release branch build. This can lead to confusion if a new feature is backported to the release branch and the docs are published to the website, even though the feature will not be available until the next tagged release. This does have the effect that small doc-only fixes will not be in the latest release docs until we actually tag a release. Signed-off-by: Travis Nielsen --- build/release/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/build/release/Makefile b/build/release/Makefile index 99928ef02..9ed9bbf86 100644 --- a/build/release/Makefile +++ b/build/release/Makefile @@ -51,7 +51,14 @@ PLATFORMS ?= $(ALL_PLATFORMS) # "helm" flavor is for pushing to s3/https endpoint # "charts" flavor is for pushing to oci endpoint -FLAVORS ?= output images docs helm charts +FLAVORS ?= output images helm charts + +# Only publish the docs if in master branch or if this is a tagged release. +ifeq ($(shell echo $(BRANCH_NAME)),master) +FLAVORS += docs +else ifeq ($(TAGGED_RELEASE),true) +FLAVORS += docs +endif DOCKER_REGISTRY ?= docker.io/rook QUAY_REGISTRY ?= quay.io/rook