Use git to generate docker tag

This commit is contained in:
wpetit 2022-05-11 16:18:04 +02:00
parent a9a8109cb6
commit 2734f49ab0
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
DOKKU_HOST := dokku@dev.lookingfora.name
SHELL := /bin/bash
DOCKER_IMAGE_NAME ?= bornholm/hydra-passwordless
DOCKER_IMAGE_TAG ?= $(shell date +%Y%m%d%H%M)
DOCKER_IMAGE_TAG ?= $(shell git describe --always)
build:
CGO_ENABLED=0 go build -v -o bin/server ./cmd/server