Skip to content

Commit c8d87ee

Browse files
Merge pull request #3 from stackrox/jv-add-make-tag
Jv add make tag
2 parents 571f8b2 + 2ab5599 commit c8d87ee

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
.DEFAULT_GOAL = all
2+
3+
ifeq ($(BERSERKER_TAG),)
4+
BERSERKER_TAG=$(shell git describe --tags --abbrev=10 --dirty)
5+
endif
6+
7+
8+
.PHONY: all
19
all:
210
docker build -t builder -f Dockerfile.build .
311
docker build -t berserker .
12+
13+
14+
.PHONY: tag
15+
tag:
16+
@echo "$(BERSERKER_TAG)"

0 commit comments

Comments
 (0)