From 7a1b57931e29445dbf41091fdf15002f72836e91 Mon Sep 17 00:00:00 2001 From: David Allen Date: Thu, 1 Aug 2024 16:02:58 -0600 Subject: [PATCH] Updated Makefile with changes to container rules --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5783752..900909f 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,7 @@ DOCKER ?= docker prog ?= configurator +git_tag := $(git describe --abbrev=0 --tags) sources := main.go $(wildcard cmd/*.go) plugin_source_prefix := pkg/generator/plugins plugin_sources := $(filter-out %_test.go,$(wildcard $(plugin_source_prefix)/*/*.go)) @@ -24,11 +25,11 @@ $(prog): $(sources) .PHONY: container container: binaries plugins - $(DOCKER) build . --build-arg --no-cache --pull --tag 'configurator:testing' + $(DOCKER) build . --build-arg --no-cache --pull --tag '$(prog):$(git_tag)-dirty' .PHONY: container-testing container-testing: binaries plugins - $(DOCKER) build . --tag configurator:testing + $(DOCKER) build . --tag $(prog):testing # build all of the generators into plugins .PHONY: plugins