fix(ci): use universal REGISTRY_PAT secret for Forgejo registry auth
build-prod / build-push (push) Canceled after 0s
build-prod / build-push (push) Canceled after 0s
This commit is contained in:
@@ -13,6 +13,7 @@ jobs:
|
||||
env:
|
||||
REGISTRY: forgejo.riotpiao.com
|
||||
IMAGE_NAME: rock/kmsvc-manage
|
||||
REGISTRY_PAT: ${{ secrets.REGISTRY_PAT }}
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
@@ -28,8 +29,8 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
username: rock
|
||||
password: ${{ env.REGISTRY_PAT }}
|
||||
|
||||
- name: Extract metadata (tags, labels)
|
||||
id: meta
|
||||
|
||||
Reference in New Issue
Block a user