File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
deploy/helm/secret-operator Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 11# =============
22# This file is automatically generated from the templates in stackabletech/operator-templating
3- # DON'T MANUALLY EDIT THIS FILE
3+ # DO NOT MANUALLY EDIT THIS FILE
44# =============
55
66# This script requires https://github.com/mikefarah/yq (not to be confused with https://github.com/kislyuk/yq)
1010
1111TAG := $(shell git rev-parse --short HEAD)
1212
13- VERSION := $(shell cargo metadata --format-version 1 | jq '.packages[] | select(.name=="stackable-secret-operator") | .version')
13+ VERSION := $(shell cargo metadata --format-version 1 | jq -r '.packages[] | select(.name=="stackable-secret-operator") | .version')
14+ IS_NIGHTLY := $(shell echo "${VERSION}" | grep -- '-nightly$$')
15+ # When rendering docs we want to simplify the version number slightly, only rendering "nightly" for nightly branches
16+ # (since we only render nightlies for the active development trunk anyway) and chopping off the semver patch version otherwise
17+ DOCS_VERSION := $(if ${IS_NIGHTLY},nightly,$(shell echo "${VERSION}" | sed 's/^\([0-9]\+\.[0-9]\+\) \..* $$/\1/') )
18+ export VERSION IS_NIGHTLY DOCS_VERSION
1419
1520SHELL =/bin/bash -euo pipefail
1621
@@ -38,7 +43,8 @@ chart-clean:
3843 rm -rf deploy/helm/secret-operator/crds
3944
4045version :
41- yq eval -i ' .version = ${VERSION} | .appVersion = ${VERSION}' /dev/stdin < deploy/helm/secret-operator/Chart.yaml
46+ yq eval -i ' .version = strenv(VERSION) | .appVersion = strenv(VERSION)' /dev/stdin < deploy/helm/secret-operator/Chart.yaml
47+ yq eval -i ' .version = strenv(DOCS_VERSION) | .prerelease = strenv(IS_NIGHTLY) != ""' /dev/stdin < docs/antora.yml
4248
4349config :
4450 if [ -d " deploy/config-spec/" ]; then\
Original file line number Diff line number Diff line change 11---
22apiVersion : v2
33name : secret-operator
4- version : 0.5.0-nightly
4+ version : " 0.5.0-nightly"
55appVersion : " 0.5.0-nightly"
66description : The Stackable Operator for Stackable Secret Operator
77home : https://github.com/stackabletech/secret-operator
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ version: nightly
44title : Stackable Secret Operator
55nav :
66 - modules/ROOT/nav.adoc
7+ prerelease : true
You can’t perform that action at this time.
0 commit comments