looping through tags to be removed
Some checks failed
Build Docker Image / Docker-Build (push) Successful in 12s
Build Docker Image / Clean-Registry (push) Failing after 2s

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-03 23:06:33 +01:00
parent 672f9fe2db
commit 69d56284e5

View File

@@ -48,8 +48,11 @@ jobs:
- name: Get tag list
run: |
TAGS="$(curl -u "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASS }}" -s ${{ 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 > /tmp/old_tags
- name: Remove tags