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 1
1
# =============
2
2
# 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
4
4
# =============
5
5
6
6
# This script requires https://github.com/mikefarah/yq (not to be confused with https://github.com/kislyuk/yq)
10
10
11
11
TAG := $(shell git rev-parse --short HEAD)
12
12
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
14
19
15
20
SHELL =/bin/bash -euo pipefail
16
21
@@ -38,7 +43,8 @@ chart-clean:
38
43
rm -rf deploy/helm/secret-operator/crds
39
44
40
45
version :
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
42
48
43
49
config :
44
50
if [ -d " deploy/config-spec/" ]; then\
Original file line number Diff line number Diff line change 1
1
---
2
2
apiVersion : v2
3
3
name : secret-operator
4
- version : 0.5.0-nightly
4
+ version : " 0.5.0-nightly"
5
5
appVersion : " 0.5.0-nightly"
6
6
description : The Stackable Operator for Stackable Secret Operator
7
7
home : https://github.com/stackabletech/secret-operator
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ version: nightly
4
4
title : Stackable Secret Operator
5
5
nav :
6
6
- modules/ROOT/nav.adoc
7
+ prerelease : true
You can’t perform that action at this time.
0 commit comments