2026-01-24 13:30:26 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
#MISE description="List available containers and their recent tags"
|
|
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
2026-01-25 12:06:15 -08:00
|
|
|
REGISTRY="registry.ops.eblu.me"
|
2026-01-24 16:54:35 -08:00
|
|
|
CONTAINER_DIR="containers"
|
2026-01-24 13:30:26 -08:00
|
|
|
|
|
|
|
|
echo "Container Images"
|
|
|
|
|
echo "================"
|
|
|
|
|
echo ""
|
|
|
|
|
|
2026-01-24 16:54:35 -08:00
|
|
|
# Find all container directories with Dockerfiles
|
|
|
|
|
for dir in "$CONTAINER_DIR"/*/; do
|
|
|
|
|
[[ -d "$dir" ]] || continue
|
|
|
|
|
[[ -f "$dir/Dockerfile" ]] || continue
|
2026-01-24 13:30:26 -08:00
|
|
|
|
2026-01-24 16:54:35 -08:00
|
|
|
# Extract container name from directory
|
|
|
|
|
container=$(basename "$dir")
|
|
|
|
|
image="blumeops/$container"
|
2026-01-24 13:30:26 -08:00
|
|
|
|
|
|
|
|
echo "📦 $container"
|
|
|
|
|
echo " Image: $REGISTRY/$image"
|
2026-01-24 16:54:35 -08:00
|
|
|
echo " Path: $dir"
|
2026-01-24 13:30:26 -08:00
|
|
|
|
|
|
|
|
# Query zot for recent tags
|
|
|
|
|
tags=$(curl -sf "https://$REGISTRY/v2/$image/tags/list" 2>/dev/null | jq -r '.tags // [] | .[]' | grep -E '^v[0-9]' | sort -V | tail -4 || true)
|
|
|
|
|
|
|
|
|
|
if [[ -n "$tags" ]]; then
|
|
|
|
|
echo " Recent tags:"
|
|
|
|
|
echo "$tags" | while read -r tag; do
|
|
|
|
|
echo " - $tag"
|
|
|
|
|
done
|
|
|
|
|
else
|
|
|
|
|
echo " Recent tags: (none)"
|
|
|
|
|
fi
|
|
|
|
|
echo ""
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
echo "---"
|
|
|
|
|
echo "To release a new version:"
|
2026-01-24 16:54:35 -08:00
|
|
|
echo " mise run container-tag-and-release <container> <version>"
|
2026-01-24 13:30:26 -08:00
|
|
|
echo ""
|
|
|
|
|
echo "Example:"
|
2026-01-24 16:54:35 -08:00
|
|
|
echo " mise run container-tag-and-release nettest v1.0.0"
|