Introduce goreleaser support

This commit is contained in:
2023-06-16 14:31:09 +02:00
parent f0685919fd
commit 9b7b3812d9
7 changed files with 84 additions and 21 deletions

View File

@@ -5,7 +5,7 @@ FRONTEND = ./web/frontend
VERSION = 1.0.0
GIT_HASH := $(shell git rev-parse --short HEAD || echo 'development')
CURRENT_TIME = $(shell date +"%Y-%m-%d:T%H:%M:%S")
LD_FLAGS = '-s -X main.buildTime=${CURRENT_TIME} -X main.version=${VERSION} -X main.hash=${GIT_HASH}'
LD_FLAGS = '-s -X main.date=${CURRENT_TIME} -X main.version=${VERSION} -X main.commit=${GIT_HASH}'
EXECUTABLES = go npm
K := $(foreach exec,$(EXECUTABLES),\