trying to figure out, how to reduce the list of tags
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user