From 4c4d12598d350e8162b9a603670a0c54c6f3c653 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 1 Apr 2022 21:07:59 +0200 Subject: [PATCH] makefile: add build args [skip ci] --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0afb4c2..4accc14 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,9 @@ dargskaniko = run --rm -it -w=$(kanikowdir) -v $$PWD:$(kanikowdir) kanikoexecutorimg = gcr.io/kaniko-project/executor:v1.8.0-debug kanikowdir = /src kanikocontext = . -kanikoargs = -f=$(dfile) -c=$(kanikocontext) --use-new-run --snapshotMode=redo --no-push --force +kanikoargs = -f=$(dfile) -c=$(kanikocontext) --use-new-run --snapshotMode=redo --build-arg BUILD_DATE=$(build_date) --build-arg VCS_REF=$(vcs_ref) --no-push +vcs_ref = $$(git rev-parse --short HEAD) +build_date= $$(date -u +"%Y-%m-%dT%H:%M:%SZ") .PHONY: build kaniko clean test prune