From f477bbf557a3f9cbe602116a2970c40c537acddf Mon Sep 17 00:00:00 2001 From: Raul Sevilla Date: Mon, 29 Jul 2024 16:56:29 +0200 Subject: [PATCH] Include assets in build requirements Signed-off-by: Raul Sevilla --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3303400..98661f1 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ JSONNET := https://github.com/google/go-jsonnet/releases/download/v0.20.0/go-jso JB := https://github.com/jsonnet-bundler/jsonnet-bundler/releases/latest/download/jb-$(JB_OS_TYPE)-$(subst x86_64,amd64,$(ARCH)) BINDIR = bin TEMPLATESDIR = templates +ASSETS := $(wildcard assets/**/*.libsonnet) OUTPUTDIR = rendered ALLDIRS = $(BINDIR) $(OUTPUTDIR) SYNCER_IMG_TAG ?= quay.io/cloud-bulldozer/dittybopper-syncer:latest @@ -54,7 +55,7 @@ $(TEMPLATESDIR)/vendor: cd $(TEMPLATESDIR) && ../$(BINDIR)/jb install && cd ../ # Build each template and output to $(OUTPUTDIR) -$(OUTPUTDIR)/%.json: $(TEMPLATESDIR)/%.jsonnet +$(OUTPUTDIR)/%.json: $(TEMPLATESDIR)/%.jsonnet $(ASSETS) @echo "Building template $<" mkdir -p $(dir $@) $(BINDIR)/jsonnet -J ./$(LIBRARY_PATH) $< > $@ @@ -66,4 +67,4 @@ build-syncer-image: v2 podman build --platform=${PLATFORM} -f Dockerfile --manifest=${SYNCER_IMG_TAG} . push-syncer-image: - podman manifest push ${SYNCER_IMG_TAG} ${SYNCER_IMG_TAG} \ No newline at end of file + podman manifest push ${SYNCER_IMG_TAG} ${SYNCER_IMG_TAG}