Skip to content

Commit 584a231

Browse files
committed
Tweak tag name, add SHA version
1 parent 1eb62aa commit 584a231

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
VERSION:=$(shell git rev-parse HEAD)
2+
13
bin/coderd:
24
mkdir -p bin
35
go build -o bin/coderd cmd/coderd/main.go
@@ -24,7 +26,7 @@ database/generate: fmt/sql database/dump.sql database/query.sql
2426
.PHONY: database/generate
2527

2628
docker/image/coder: build
27-
docker build --network=host -t todo/v2/test -f images/coder/Dockerfile ./bin
29+
docker build --network=host -t ci/coder:$(VERSION) -t ci/coder -f images/coder/Dockerfile ./bin
2830
.PHONY: docker/image/coder
2931

3032
fmt/prettier:

0 commit comments

Comments
 (0)