Bump backup PVC version to v0.1.1

This commit is contained in:
Mateusz Korus 2021-04-29 15:00:22 +02:00
parent a7fb199f98
commit 81374d0857
4 changed files with 5 additions and 3 deletions

2
.gitignore vendored
View File

@ -89,5 +89,5 @@ tags
### IntelliJ IDEA ###
*.iml
bin
/bin
testbin/*

View File

@ -345,6 +345,7 @@ HAS_SEMBUMP := $(shell which $(PROJECT_DIR)/bin/sembump)
sembump: # Download sembump locally if necessary
@echo "+ $@"
ifndef HAS_SEMBUMP
mkdir bin
wget -O $(PROJECT_DIR)/bin/sembump https://github.com/justintout/sembump/releases/download/v0.1.0/sembump-$(PLATFORM)-amd64
chmod +x $(PROJECT_DIR)/bin/sembump
endif

View File

@ -11,6 +11,7 @@ include $(config)
PREFIX?=$(shell pwd)
VERSION := $(shell cat VERSION.txt)
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
GITCOMMIT := $(shell git rev-parse --short HEAD)
GITBRANCH := $(shell git rev-parse --abbrev-ref HEAD)
GITUNTRACKEDCHANGES := $(shell git status --porcelain --untracked-files=no)
@ -130,7 +131,7 @@ docker-run: docker-build ## Run the container in docker, you can use EXTRA_ARGS
BUMP := patch
bump-version: ## Bump the version in the version file. Set BUMP to [ patch | major | minor ]
@echo "+ $@"
$(eval NEW_VERSION=$(shell sembump --kind $(BUMP) $(VERSION)))
$(eval NEW_VERSION=$(shell $(PROJECT_DIR)/../../bin/sembump --kind $(BUMP) $(VERSION)))
@echo "Bumping VERSION.txt from $(VERSION) to $(NEW_VERSION)"
echo $(NEW_VERSION) > VERSION.txt
git add VERSION.txt

View File

@ -1 +1 @@
v0.1.0
v0.1.1