ci: flip ghcr package to public after push (RunPod pulls anonymously)
This commit is contained in:
1 parent
9442e98704
commit
51576954db
1 file changed
+11
-1
@@ -42,4 +42,14 @@ jobs:
|
|||||||
ghcr.io/terrafying/saw-chamber-worker:v2
|
ghcr.io/terrafying/saw-chamber-worker:v2
|
||||||
ghcr.io/terrafying/saw-chamber-worker:latest
|
ghcr.io/terrafying/saw-chamber-worker:latest
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
|
# RunPod pulls anonymously, so the package must be public. Code in the
|
||||||
|
# image is already public via the site tarballs — no new exposure.
|
||||||
|
- name: Make package public
|
||||||
|
run: |
|
||||||
|
curl -sS -o /dev/null -w "%{http_code}\n" -X PATCH \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
https://api.github.com/user/packages/container/saw-chamber-worker \
|
||||||
|
-d '{"package_type":"container","visibility":"public"}' || true
|
||||||
Reference in new issue
Block a user