From a7e26678451547edc34006b3d570730e289eccae Mon Sep 17 00:00:00 2001 From: Ramkumar Chinchani Date: Thu, 2 Nov 2023 06:40:04 +0000 Subject: [PATCH] add --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0ecf0dbe..92f12871 100644 --- a/Makefile +++ b/Makefile @@ -101,6 +101,15 @@ $(REGCLIENT): $(ZOT): $(call dlbin,$@,https://github.com/project-zot/zot/releases/download/$(ZOT_VERSION)/zot-linux-amd64-minimal) +$(SKOPEO): + tmpdir=$$(mktemp -d); \ + cd $$tmpdir; \ + git clone -b $(SKOPEO_VERSION) https://github.com/containers/skopeo.git; \ + cd skopeo; \ + make bin/skopeo; \ + cp bin/skopeo $(SKOPEO); \ + cd $(TOP_LEVEL) + TEST?=$(patsubst test/%.bats,%,$(wildcard test/*.bats)) PRIVILEGE_LEVEL?= @@ -110,7 +119,7 @@ PRIVILEGE_LEVEL?= check: lint test go-test .PHONY: test -test: stacker $(REGCLIENT) $(ZOT) +test: stacker $(REGCLIENT) $(SKOPEO) $(ZOT) sudo -E PATH="$$PATH" \ LXC_BRANCH=$(LXC_BRANCH) \ LXC_CLONE_URL=$(LXC_CLONE_URL) \