This commit is contained in:
Havoc420Mac 2025-04-05 13:01:15 +08:00
parent 9a959b4cae
commit 774123eefc

View File

@ -50,7 +50,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.GHCR_USER }}
username: ${{ secrets.GHCR_USER }}
password: ${{ secrets.GHCR_TOKEN }} # 在Gitea仓库设置中添加此secret
- name: 构建并推送 Docker 镜像
@ -58,8 +58,7 @@ jobs:
with:
context: .
push: true
tags: |
${{ env.REGISTRY }}/${{ env.GHCR_USER }}/${{ env.IMAGE_NAME }}:${{ steps.branch_name.outputs.tag }}
tags: ${{ env.REGISTRY }}/${{ secrets.GHCR_USER }}/${{ env.IMAGE_NAME }}:${{ steps.branch_name.outputs.tag }}
labels: |
org.opencontainers.image.source=${{ gitea.server_url }}/${{ gitea.repository }}
build-args: |