Skip to content

Commit 13c69c8

Browse files
committed
install skopeo if missing
1 parent 5345a85 commit 13c69c8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,17 @@ else
109109
GO111MODULE=on go build -o $(GOPATH)/bin/golangci-lint ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint
110110
endif
111111

112-
install-tools: install-golangci-lint install-go-junit-report install-setup-envtest
112+
SKOPEO := $(shell command -v skopeo 2> /dev/null)
113+
install-skopeo:
114+
ifdef SKOPEO
115+
@echo "Found skopeo"
116+
skopeo --version
117+
else
118+
@echo "Installing skopeo"
119+
dnf install -y skopeo
120+
endif
121+
122+
install-tools: install-golangci-lint install-go-junit-report install-setup-envtest install-skopeo
113123

114124
# Runs golangci-lint
115125
lint: install-tools

0 commit comments

Comments
 (0)