0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-30 22:34:13 -05:00

ci/cd: added a 'make verify-config' target so that example configurations don't break, closes #350

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
Petu Eusebiu 2022-01-07 14:58:02 +02:00 committed by Ramkumar Chinchani
parent 9e98b03f55
commit e5f8b184d6

View file

@ -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 .