yet another OCI fix

This commit is contained in:
Kjeld Schouten
2024-01-01 16:20:50 +01:00
parent 70897ed90e
commit 63134a01ce
2 changed files with 2 additions and 2 deletions

View File

@@ -72,7 +72,7 @@ jobs:
name="${filename%%-[0-9]*.[0-9]*.[0-9]*.tgz}"
echo "uploading $name"
helm push "${pkg}" oci://quay.io/truecharts || echo "failed to upload $pkg to OCI"
curl -X POST -H "Content-Type: application/json" -d '{"visibility": "public"}' -H "Authorization: Bearer ${{ secrets.QUAY_API_TOKEN }}" "https://quay.io/api/v1/repository/truecharts/$pkg/changevisibility" || echo "failed to set $pkg to public on OCI"
curl -X POST -H "Content-Type: application/json" -d '{"visibility": "public"}' -H "Authorization: Bearer ${{ secrets.QUAY_TOKEN }}" "https://quay.io/api/v1/repository/truecharts/$pkg/changevisibility" || echo "failed to set $pkg to public on OCI"
done
- name: Helm | Logout