blob: 1eb6b56e798714922aa8e55c6e7ffe8bf4db3e57 (
plain) (
tree)
|
|
#!/usr/bin/env bash
#
# SPDX-License-Identifier: ISC
# Copyright © 2022 siddharth <s@ricketyspace.net>
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"
|