File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,15 +26,25 @@ jobs:
2626 name : cleanup-stale-tags
2727 runs-on : ubuntu-latest
2828 steps :
29- - name : Delete owncloud/ocis-rolling: 7.3.1-dev.1
29+ - name : Delete stale 7.3.1-dev.1 tags from owncloud/ocis-rolling
3030 run : |
3131 TOKEN=$(curl -s -X POST \
3232 -H "Content-Type: application/json" \
3333 -d '{"username":"${{ vars.DOCKERHUB_USERNAME }}","password":"${{ secrets.DOCKERHUB_TOKEN }}"}' \
3434 https://hub.docker.com/v2/users/login | jq -r .token)
35- curl -s -X DELETE \
36- -H "Authorization: Bearer $TOKEN" \
37- "https://hub.docker.com/v2/repositories/owncloud/ocis-rolling/tags/7.3.1-dev.1/"
35+ for TAG in \
36+ 7.3.1-dev.1 \
37+ 7.3.1-dev.1-linux-amd64 \
38+ 7.3.1-dev.1-linux-arm64 \
39+ 7-linux-amd64 \
40+ 7-linux-arm64 \
41+ 7.3-linux-amd64 \
42+ 7.3-linux-arm64; do
43+ echo "Deleting owncloud/ocis-rolling:$TAG"
44+ curl -s -X DELETE \
45+ -H "Authorization: Bearer $TOKEN" \
46+ "https://hub.docker.com/v2/repositories/owncloud/ocis-rolling/tags/$TAG/"
47+ done
3848
3949 determine-release-type :
4050 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments