From 3519bccfa0af3747aa0cfd873162e1165df02e42 Mon Sep 17 00:00:00 2001 From: Max Goltzsche Date: Sat, 15 May 2021 01:38:01 +0200 Subject: [PATCH] fix: push image with version tag --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 19a1cab..b1cbfa4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ -IMAGE ?= docker.io/mgoltzsche/kustomizr:latest +VERSION ?= latest +IMAGE ?= docker.io/mgoltzsche/kustomizr:$(VERSION) BUILD_DIR := $(shell pwd)/build BIN_DIR := $(BUILD_DIR)/bin @@ -29,7 +30,9 @@ check-repo-unchanged: echo 'Please call `make static-manifests` and commit the resulting changes.'; \ false) >&2 -release: image test check-repo-unchanged docker-push +release: + make image test check-repo-unchanged docker-push VERSION=latest + make image docker-push VERSION=$(VERSION) $(KPT): kpt kpt: