Tag Docker image with release date
This commit is contained in:
parent
82f21d0298
commit
9035280818
4
Makefile
4
Makefile
|
@ -1,3 +1,5 @@
|
|||
DOCKER_DATE_TAG := $(shell date +%Y%m%d%H%M)
|
||||
|
||||
build:
|
||||
CGO_ENABLED=0 go build -v -o bin/fake-smtp ./cmd/fake-smtp
|
||||
|
||||
|
@ -21,8 +23,10 @@ docker-run:
|
|||
|
||||
docker-release:
|
||||
docker tag fake-smtp:latest bornholm/fake-smtp:latest
|
||||
docker tag fake-smtp:latest bornholm/fake-smtp:$(DOCKER_DATE_TAG)
|
||||
docker login
|
||||
docker push bornholm/fake-smtp:latest
|
||||
docker push bornholm/fake-smtp:$(DOCKER_DATE_TAG)
|
||||
|
||||
test:
|
||||
go test -v -race ./...
|
||||
|
|
Loading…
Reference in New Issue