trying to figure out, how to reduce the list of tags
All checks were successful
Build Docker Image / Docker-Build (push) Successful in 13s
Build Docker Image / Clean-Registry (push) Successful in 2s

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-03 22:56:34 +01:00
parent a4517201d4
commit de462c6777

View File

@@ -48,9 +48,10 @@ jobs:
- name: Get tag list
run: |
TAGS="$(curl -s -u "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASS }}" https://${{ secrets.REGISTRY_PATH }}/v2/umbrella/tags/list | jq -r ".tags[]")"
echo tags: $TAGS
COUNT=$(echo "$TAGS" | wc -l)
echo count: $COUNT
REMAIN=$((COUNT - 10))
echo remaining: $REMAIN
echo "$TAGS" | head -n $REMAIN
TAGS="$(echo "$TAGS" | head -n $REMAIN)"
echo "$TAGS"
for TAG in $TAGS; do
echo should remove $TAG
done