fix(release): 容器发布 - 保持自部署镜像公开可拉取
This commit is contained in:
10
.github/workflows/publish-images.yml
vendored
10
.github/workflows/publish-images.yml
vendored
@@ -80,6 +80,16 @@ jobs:
|
|||||||
cache-from: type=gha,scope=${{ matrix.image }}
|
cache-from: type=gha,scope=${{ matrix.image }}
|
||||||
cache-to: type=gha,mode=max,scope=${{ matrix.image }}
|
cache-to: type=gha,mode=max,scope=${{ matrix.image }}
|
||||||
|
|
||||||
|
- name: Keep deployment image public
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
gh api \
|
||||||
|
--method PATCH \
|
||||||
|
"/orgs/${{ github.repository_owner }}/packages/container/${{ matrix.image }}" \
|
||||||
|
-f visibility=public
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Publish release assets
|
name: Publish release assets
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|||||||
Reference in New Issue
Block a user