diff --git a/.ci/podman.mk b/.ci/podman.mk index 5e3de0b..3e8b720 100644 --- a/.ci/podman.mk +++ b/.ci/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"