ci: enforce GHCR package visibility public after each push
GHCR packages default private on first creation. Add a best-effort gh api PATCH call at the end of both the multi-arch merge job and the cpu build job so any new package version is immediately public without requiring a manual UI step. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -131,6 +131,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker buildx imagetools inspect ${{ steps.tags.outputs.tags }}
|
docker buildx imagetools inspect ${{ steps.tags.outputs.tags }}
|
||||||
|
|
||||||
|
- name: Ensure package is public
|
||||||
|
run: |
|
||||||
|
gh api -X PATCH /user/packages/container/winnow \
|
||||||
|
-f visibility=public || true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
build-cpu:
|
build-cpu:
|
||||||
name: Build CPU-only (amd64)
|
name: Build CPU-only (amd64)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -185,3 +192,10 @@ jobs:
|
|||||||
- name: Inspect CPU image
|
- name: Inspect CPU image
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools inspect ${{ steps.cpu-tag.outputs.tag }}
|
docker buildx imagetools inspect ${{ steps.cpu-tag.outputs.tag }}
|
||||||
|
|
||||||
|
- name: Ensure package is public
|
||||||
|
run: |
|
||||||
|
gh api -X PATCH /user/packages/container/winnow \
|
||||||
|
-f visibility=public || true
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user