makefile: add build args [skip ci]
This commit is contained in:
parent
fe3ebc6d83
commit
4c4d12598d
4
Makefile
4
Makefile
@ -8,7 +8,9 @@ dargskaniko = run --rm -it -w=$(kanikowdir) -v $$PWD:$(kanikowdir)
|
|||||||
kanikoexecutorimg = gcr.io/kaniko-project/executor:v1.8.0-debug
|
kanikoexecutorimg = gcr.io/kaniko-project/executor:v1.8.0-debug
|
||||||
kanikowdir = /src
|
kanikowdir = /src
|
||||||
kanikocontext = .
|
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
|
.PHONY: build kaniko clean test prune
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user