From c1ac95c9e05c056489a20c025ced8d22218576e2 Mon Sep 17 00:00:00 2001 From: siddharth Date: Sun, 22 May 2022 13:40:40 -0400 Subject: Makefile: add image-push --- bin/image-push | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/image-push (limited to 'bin/image-push') diff --git a/bin/image-push b/bin/image-push new file mode 100755 index 0000000..1eb6b56 --- /dev/null +++ b/bin/image-push @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# +# SPDX-License-Identifier: ISC +# Copyright © 2022 siddharth + +REPO="public.ecr.aws/w3h8c8i8/peach" + +# Find the most recent tag. +TAG=$(docker images "$REPO" --format "{{.Tag}}" | head -n 1) +if [ -z "$TAG" ]; then + echo "No recent tags found" + exit 1 +fi + +docker push "$REPO":"$TAG" -- cgit v1.2.3