fix(ci): 给 job 增加 packages: write 权限并将 docker login 用户名设为 gitea-actions
Build and Push Docker Image / build (push) Failing after 2s

This commit is contained in:
Antigravity committed 2026-09-19 11:46:37 +08:00
1 parent e0f4cb14a0
commit 14f81d0d07
1 file changed
+4 -1
+4 -1
View File
@@ -11,6 +11,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
run: |
@@ -26,7 +29,7 @@ jobs:
- name: Log in to Gitea Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.openlocalpdf.com -u "${{ gitea.actor }}" --password-stdin
echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.openlocalpdf.com -u gitea-actions --password-stdin
- name: Build and Push Docker image
run: |