From d1518f11b71b92d60504699fb51b53d4f3d79760 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 24 Mar 2022 18:00:08 +0100 Subject: [PATCH] makefile: separate hadolint tag into its own var --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cd9eccf..0f99970 100644 --- a/Makefile +++ b/Makefile @@ -11,13 +11,14 @@ kanikocontext = . 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") -hadolintimg = hadolint/hadolint:v2.9.3-alpine +hadolintimg = hadolint/hadolint +hadolinttag = v2.9.3-alpine hadolintargs = run --rm -i -v $$PWD/.hadolint.yaml:/root/.config/hadolint.yaml .PHONY: hadolint build kaniko clean test prune hadolint: - $(dcmd) $(hadolintargs) $(hadolintimg) < $(dfile) + $(dcmd) $(hadolintargs) $(hadolintimg):$(hadolinttag) < $(dfile) kaniko: $(dcmd) $(dargskaniko) $(kanikoexecutorimg) $(kanikoargs)