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,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
|
||||
|
||||
Reference in New Issue
Block a user