From f35aab807b5ec754c3d2e38ea6ff5d2d12d3f758 Mon Sep 17 00:00:00 2001 From: Anders Eknert Date: Wed, 17 Jan 2024 14:02:25 +0100 Subject: [PATCH] Makefile fixes Bump version to v0.9 and remove the duplicate -v2 suffixes in the plugin push make task. Signed-off-by: Anders Eknert --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9c4bbcd7..adf61476 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: all build -VERSION ?= 0.8 +VERSION ?= 0.9 GO_VERSION := 1.21.4 GOLANGCI_LINT_VERSION := v1.55.2 REPO ?= openpolicyagent/opa-docker-authz-v2 @@ -34,13 +34,13 @@ plugin: build plugin-push: @for plugin in `docker plugin ls --format '{{.Name}}'`; do \ - if [ "$$plugin" = "$(REPO)-v2:$(VERSION)" ]; then \ - echo "\nPushing plugin $(REPO)-v2:$(VERSION) ..."; \ - docker plugin push $(REPO)-v2:$(VERSION); \ + if [ "$$plugin" = "$(REPO):$(VERSION)" ]; then \ + echo "\nPushing plugin $(REPO):$(VERSION) ..."; \ + docker plugin push $(REPO):$(VERSION); \ exit; \ fi \ done; \ - echo "\nNo local copy of $(REPO)-v2:$(VERSION) exists, create it before attempting push" + echo "\nNo local copy of $(REPO):$(VERSION) exists, create it before attempting push" clean: @if [ -f ./opa-docker-authz ]; then \