Skip to content

Commit

Permalink
Makefile fixes
Browse files Browse the repository at this point in the history
Bump version to v0.9 and remove the duplicate -v2 suffixes in the
plugin push make task.

Signed-off-by: Anders Eknert <[email protected]>
  • Loading branch information
anderseknert committed Jan 17, 2024
1 parent 5f0c78a commit f35aab8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit f35aab8

Please sign in to comment.