Skip to content

Commit 4a12725

Browse files
authored
update makefile to support versioning w/ git tags and tests (#26)
1 parent 796d042 commit 4a12725

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

Makefile

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
VERSION ?= 1.0.0-SNAPSHOT
1+
VERSION = $(shell git describe --tags --always --dirty)
22
IMG ?= amazon/aws-node-termination-handler
3-
IMG_W_TAG = ${IMG}:v${VERSION}
3+
IMG_W_TAG = ${IMG}:${VERSION}
44
DOCKER_USERNAME ?= ""
55
DOCKER_PASSWORD ?= ""
66

@@ -19,3 +19,17 @@ version:
1919

2020
image:
2121
@echo ${IMG_W_TAG}
22+
23+
e2e-test:
24+
test/spot-termination-test/run-spot-termination-test.sh -d
25+
26+
compatibility-test:
27+
test/k8s-compatibility-test/run-k8s-compatibility-test.sh
28+
29+
license-test:
30+
test/license-test/run-license-test.sh
31+
32+
go-report-card-test:
33+
test/go-report-card-test/run-report-card-test.sh
34+
35+
test: e2e-test compatibility-test license-test go-report-card-test

0 commit comments

Comments
 (0)