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:
parent
9e98b03f55
commit
e5f8b184d6
1 changed files with 5 additions and 1 deletions
6
Makefile
6
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 .
|
||||
|
|
Loading…
Reference in a new issue