Squashed '.ci/' changes from 49ea8c8..cb5faca

cb5faca feat: add create-repo task to ease bootstrapping new project

git-subtree-dir: .ci
git-subtree-split: cb5facae6c19643fbb08b90416c6b5917b666a46
This commit is contained in:
Stefan Reimer 2022-05-24 16:53:55 +02:00
parent 49ea8c8779
commit 51fd4d494e
1 changed files with 6 additions and 0 deletions

View File

@ -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"