From cb5facae6c19643fbb08b90416c6b5917b666a46 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Tue, 24 May 2022 16:53:39 +0200 Subject: [PATCH] feat: add create-repo task to ease bootstrapping new project --- podman.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/podman.mk b/podman.mk index 5e3de0b..3e8b720 100644 --- a/podman.mk +++ b/podman.mk @@ -2,6 +2,8 @@ GTAG=$(shell git describe --tags --match v*.*.* 2>/dev/null || git rev-parse --short HEAD 2>/dev/null) TAG ?= $(shell echo $(GTAG) | awk -F '-' '{ print $$1 "-" $$2 }' | sed -e 's/-$$//') +# EXTRA_TAGS supposed to be set at the caller, eg. $(shell echo $(TAG) | awk -F '.' '{ print $$1 "." $$2 }') + ifeq ($(TRIVY_REMOTE),) TRIVY_OPTS := image else @@ -54,5 +56,9 @@ rm-test-image: ci-pull-upstream: git stash && git subtree pull --prefix .ci ssh://git@git.zero-downtime.net/ZeroDownTime/ci-tools-lib.git master --squash && git stash pop +.PHONY: create-repo +create-repo: + aws ecr-public create-repository --repository-name $(IMAGE) --region $(REGION) + .DEFAULT: @echo "$@ not implemented. NOOP"