- add nfpm package - prepare for golang builds - cleanup layers in docker
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
# Set the nfpm version to install
|
||||
NFPM_VERSION := 2.41.1
|
||||
|
||||
# Get the current Git commit hash
|
||||
GIT_COMMIT := $(shell git rev-parse --short HEAD)
|
||||
|
||||
@@ -11,7 +14,10 @@ OWNER := unkin
|
||||
|
||||
# Build the Docker image (without tags)
|
||||
build:
|
||||
docker build --network=host -t $(REGISTRY)/$(OWNER)/$(IMAGE_NAME) .
|
||||
docker build \
|
||||
--network=host \
|
||||
--build-arg NFPM_VERSION=$(NFPM_VERSION) \
|
||||
-t $(REGISTRY)/$(OWNER)/$(IMAGE_NAME) .
|
||||
|
||||
# Tag the Docker image with the Git commit hash, the date, and 'latest'
|
||||
tag:
|
||||
|
||||
Reference in New Issue
Block a user