Skip to content
Snippets Groups Projects
Commit d2fe759f authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Merge branch 'make-release' into 'main'

Makefile: add release target

See merge request aura/tank!20
parents 56516a25 8bf38b42
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,8 @@ SWAG_ARGS := -d api/v1/,cmd/tank/ -g api.go
EXECUTABLE := tank
version := $(shell grep -oP 'app\.Version = "\K(.*)(?=")' cmd/tank/main.go)
all: build
.PHONY: vet format ui build clean distclean
......@@ -69,6 +71,11 @@ test-all:
coverage:
gitlab-runner exec docker test-all | grep 'ok.*of statements'
release:
git tag ${version}
git push origin ${version}
@echo "Release '${version}' tagged and pushed successfully."
clean:
rm -f $(EXECUTABLE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment