#!/bin/sh # Static configuration REGISTRY="gitea.slebba.net" REPO="seb/podman-binexp-img" TAG=${1:-latest} # Default to 'latest' if no tag is provided IMAGE="$REGISTRY/$REPO:$TAG" echo "Pushing image: $IMAGE" # Check if the image exists locally if ! podman images | grep -q "$IMAGE"; then echo "Error: Image '$IMAGE' not found locally!" >&2 exit 1 fi # Push the image to the registry if podman push "$IMAGE"; then echo "Image pushed successfully: $IMAGE" else echo "Failed to push image: $IMAGE" >&2 exit 1 fi