Use makefile in building for the docker container

This commit is contained in:
Ben Adrian Sarmiento
2024-07-20 00:57:12 +02:00
parent fd33fdbe6f
commit 1e3f7982b5
2 changed files with 28 additions and 8 deletions

View File

@@ -5,9 +5,9 @@ GO ?= go
PKG := $(shell go list ./...)
BINARY_NAME = zurg
BUILD_DIR = ./cmd/$(BINARY_NAME)
VERSION := $(shell git describe --tags)
COMMIT := $(shell git rev-parse HEAD)
BUILT_AT := $(shell date +%Y-%m-%dT%H:%M:%SZ)
VERSION ?= $(shell git describe --tags)
COMMIT ?= $(shell git rev-parse HEAD)
BUILT_AT ?= $(shell date +%Y-%m-%dT%H:%M:%SZ)
# Default target: build
all: build