Skip to content

Commit 8d6b7dd

Browse files
committed
feat: [OCISDEV-783] release pipeline, dev.1
1 parent d32b64c commit 8d6b7dd

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)