looping through tags to be removed
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user