forked from abner/for-legacy-web
chore: Use PAT for registry push.
See: - https://github.com/go-gitea/gitea/issues/23642 - https://github.com/go-gitea/gitea/issues/29398
This commit is contained in:
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
@@ -16,7 +16,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -43,8 +42,8 @@ jobs:
|
|||||||
if: github.event_name == 'release'
|
if: github.event_name == 'release'
|
||||||
with:
|
with:
|
||||||
registry: ${{ steps.registry.outputs.host }}
|
registry: ${{ steps.registry.outputs.host }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ secrets.PACKAGE_PUBLISH_USERNAME }}
|
||||||
password: ${{ github.token }}
|
password: ${{ secrets.PACKAGE_PUBLISH_TOKEN }}
|
||||||
- name: Build and publish
|
- name: Build and publish
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user