Browse Source

Tag Docker image with release date

develop
wpetit 6 months ago
parent
commit
9035280818
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      Makefile

+ 4
- 0
Makefile View File

@ -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…
Cancel
Save