Skip to content
Snippets Groups Projects
Commit 302e569d authored by Piers Harding's avatar Piers Harding
Browse files

Merge branch 'st-915-wrong-version' into 'master'

ST-915: get the correct VERSION

See merge request ska-telescope/ska-tango-images!107
parents 20ac7dba c83bd899
Branches
Tags
No related merge requests found
......@@ -62,7 +62,6 @@ POWDER_BLUE=$(shell tput setaf 153)
BLUE=$(shell tput setaf 4)
NORMAL=$(shell tput sgr0)
make-a-release: VERSION := $(shell . $(RELEASE_SUPPORT) ; RELEASE_CONTEXT_DIR=$(RELEASE_CONTEXT_DIR) setContextHelper; getVersion)
make-a-release: ## Step through the process of bumping .release and creating a tag
@clear; \
printf "This is a guild to creating a release of ska-tango-images, including OCI Images and Helm Charts.\n You $(YELLOW) 🔥MUST🔥$(NORMAL) first have merged your Merge Request!!!\nThe steps are:\n * git checkout master && git pull \n * Select and bump OCI Image .release's \n * bump project .release AND update Helm Chart release \n * Commit .release and $(YELLOW)ANY$(NORMAL) outstanding changes, and set project git tag \n * Push changes and tag \n\n $(LIME_YELLOW)✋ The current git status (outstanding) is:$(NORMAL) \n $$(git status -b) \n"; \
......@@ -101,7 +100,8 @@ make-a-release: ## Step through the process of bumping .release and creating a t
if [[ "y" == "$${SHALL_WE}" ]] || [[ "Y" == "$${SHALL_WE}" ]]; then \
echo "$(GREEN) OK - ✨ bumping patch on project .release file and updating Helm Charts ...$(NORMAL)"; \
make bump-patch-release && make helm-set-release; \
sed -i.x -e "s/^ version:.*/ version: $(VERSION)/g" charts/ska-tango-base/Chart.yaml; \
NEW_VERSION=$$(. $(RELEASE_SUPPORT) ; RELEASE_CONTEXT_DIR=$(RELEASE_CONTEXT_DIR) setContextHelper; getVersion); \
sed -i.x -e "s/^ version:.*/ version: ${NEW_VERSION}/g" charts/ska-tango-base/Chart.yaml; \
rm -f charts/*/Chart.yaml.x; \
printf "\n $(LIME_YELLOW)✋ The updated git status (outstanding) is:$(NORMAL) \n $$(git status -b) \n"; \
else \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment