From e5f8b184d69ff9bcf4e88e45a93c44afd2f3ccd2 Mon Sep 17 00:00:00 2001 From: Petu Eusebiu Date: Fri, 7 Jan 2022 14:58:02 +0200 Subject: [PATCH] ci/cd: added a 'make verify-config' target so that example configurations don't break, closes #350 Signed-off-by: Petu Eusebiu --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6a71b71d..d428722f 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ OS ?= linux ARCH ?= amd64 .PHONY: all -all: swagger binary binary-minimal binary-debug binary-arch binary-arch-minimal exporter-minimal test test-clean check +all: swagger binary binary-minimal binary-debug binary-arch binary-arch-minimal exporter-minimal verify-config test test-clean check .PHONY: binary-minimal binary-minimal: swagger @@ -99,6 +99,10 @@ clean: run: binary test ./bin/zot serve examples/config-test.json +.PHONY: verify-config +verify-config: binary + $(foreach file, $(wildcard examples/config-*), ./bin/zot verify $(file) || exit 1;) + .PHONY: binary-container binary-container: ${CONTAINER_RUNTIME} build ${BUILD_ARGS} -f Dockerfile -t zot-build:latest .