trying to figure out, how to reduce the list of tags
All checks were successful
Build Docker Image / Docker-Build (push) Successful in 11s
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:54:20 +01:00
parent c4082aa325
commit a4517201d4

View File

@@ -47,10 +47,10 @@ jobs:
steps:
- 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[]")
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)
COUNT=$(echo "$TAGS" | wc -l)
echo count: $COUNT
REMAIN=$((COUNT - 10))
echo remaining: $REMAIN
echo $TAGS | head -n $REMAIN
echo "$TAGS" | head -n $REMAIN