Skip to content

Commit 6c5320c

Browse files
committed
Makefile: add targets to build and install docker-trust plugin
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 726e833 commit 6c5320c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ dynbinary: ## build dynamically linked binary
6969
plugins: ## build example CLI plugins
7070
scripts/build/plugins
7171

72+
.PHONY: trust-plugin
73+
trust-plugin: ## build docker-trust CLI plugins
74+
scripts/build/trust-plugin
75+
76+
.PHONY: install-trust-plugin
77+
install-trust-plugin: trust-plugin
78+
install-trust-plugin: ## install docker-trust CLI plugins
79+
install -D -m 0755 "$$(readlink -f build/docker-trust)" /usr/libexec/docker/cli-plugins/docker-trust
80+
7281
.PHONY: vendor
7382
vendor: ## update vendor with go modules
7483
rm -rf vendor

0 commit comments

Comments
 (0)