From 47e7d57dd8c3dde09609ec68e2a5cbe2ff2ac107 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Thu, 15 Sep 2022 11:34:27 +0200 Subject: [PATCH] Squashed '.ci/' changes from ea9c914..01df38b 01df38b feat: move ecr-login into its own task git-subtree-dir: .ci git-subtree-split: 01df38b42484ca4cfd0bc2cc0a927e2c2f322a91 --- podman.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/podman.mk b/podman.mk index e73cae97..626ad4f6 100644 --- a/podman.mk +++ b/podman.mk @@ -26,10 +26,12 @@ scan: build @echo "Scanning $(REGISTRY)/$(IMAGE):$(TAG) using Trivy" @trivy image $(TRIVY_OPTS) $(REGISTRY)/$(IMAGE):$(TAG) -push: build - @aws ecr-public get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(REGISTRY) +push: ecr-login build @for t in $(TAG) latest $(EXTRA_TAGS); do echo "tag and push: $$t"; docker tag $(IMAGE):$(TAG) $(REGISTRY)/$(IMAGE):$$t && docker push $(REGISTRY)/$(IMAGE):$$t; done +ecr-login: + @aws ecr-public get-login-password --region $(REGION) | docker login --username AWS --password-stdin $(REGISTRY) + clean: rm-test-image rm-image # Delete all untagged images