trying to figure out, how to reduce the list of tags
Some checks failed
Build Docker Image / Docker-Build (push) Successful in 14s
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 22:52:19 +01:00
parent e86af39dbe
commit cf4bc8acd2

View File

@@ -47,6 +47,10 @@ jobs:
steps:
- name: Get tag list
run: |
curl -s -u "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASS }}" https://${{ secrets.REGISTRY_PATH }}/v2/umbrella/tags/list
curl -s -u "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASS }}" https://${{ secrets.REGISTRY_PATH }}/v2/umbrella/tags/list | jq -r ".tags[]"
curl -s -u "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_PASS }}" https://${{ secrets.REGISTRY_PATH }}/v2/umbrella/tags/list | jq -r ".tags[]" | head -n $(( $(wc -l) - 5))
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