Skip to content

Commit

Permalink
Update templated files to rev 1ae1fd0 (#136)
Browse files Browse the repository at this point in the history
Automatically created PR based on commit 1ae1fd00f9195725a50cd158342c0ef53f827577 in stackabletech/operator-templating repo.

Triggered by:
Manual run triggered by: teozkr with message [Documentation versioning]
  • Loading branch information
stackable-bot committed May 30, 2022
1 parent de94772 commit edd8134
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions Makefile
@@ -1,6 +1,6 @@
# =============
# This file is automatically generated from the templates in stackabletech/operator-templating
# DON'T MANUALLY EDIT THIS FILE
# DO NOT MANUALLY EDIT THIS FILE
# =============

# This script requires https://github.com/mikefarah/yq (not to be confused with https://github.com/kislyuk/yq)
Expand All @@ -10,7 +10,12 @@

TAG := $(shell git rev-parse --short HEAD)

VERSION := $(shell cargo metadata --format-version 1 | jq '.packages[] | select(.name=="stackable-secret-operator") | .version')
VERSION := $(shell cargo metadata --format-version 1 | jq -r '.packages[] | select(.name=="stackable-secret-operator") | .version')
IS_NIGHTLY := $(shell echo "${VERSION}" | grep -- '-nightly$$')
# When rendering docs we want to simplify the version number slightly, only rendering "nightly" for nightly branches
# (since we only render nightlies for the active development trunk anyway) and chopping off the semver patch version otherwise
DOCS_VERSION := $(if ${IS_NIGHTLY},nightly,$(shell echo "${VERSION}" | sed 's/^\([0-9]\+\.[0-9]\+\)\..*$$/\1/'))
export VERSION IS_NIGHTLY DOCS_VERSION

SHELL=/bin/bash -euo pipefail

Expand Down Expand Up @@ -38,7 +43,8 @@ chart-clean:
rm -rf deploy/helm/secret-operator/crds

version:
yq eval -i '.version = ${VERSION} | .appVersion = ${VERSION}' /dev/stdin < deploy/helm/secret-operator/Chart.yaml
yq eval -i '.version = strenv(VERSION) | .appVersion = strenv(VERSION)' /dev/stdin < deploy/helm/secret-operator/Chart.yaml
yq eval -i '.version = strenv(DOCS_VERSION) | .prerelease = strenv(IS_NIGHTLY) != ""' /dev/stdin < docs/antora.yml

config:
if [ -d "deploy/config-spec/" ]; then\
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/secret-operator/Chart.yaml
@@ -1,7 +1,7 @@
---
apiVersion: v2
name: secret-operator
version: 0.5.0-nightly
version: "0.5.0-nightly"
appVersion: "0.5.0-nightly"
description: The Stackable Operator for Stackable Secret Operator
home: https://github.com/stackabletech/secret-operator
Expand Down
1 change: 1 addition & 0 deletions docs/antora.yml
Expand Up @@ -4,3 +4,4 @@ version: nightly
title: Stackable Secret Operator
nav:
- modules/ROOT/nav.adoc
prerelease: true

0 comments on commit edd8134

Please sign in to comment.