更新 .gitea/workflows/build.yaml
Some checks failed
Build and Push Docker Image / build (push) Failing after 4s

This commit is contained in:
2026-01-04 09:48:37 +00:00
parent eb04653163
commit cbd1eb8f20

View File

@@ -20,7 +20,8 @@ jobs:
run: |
# 登入內建 Registry (變數會自動填入)
# 使用 Gitea 的固定 IP (已经在 DinD 中配置为 insecure)
docker login 172.24.0.10:3000 -u ${{ gitea.actor }} -p ${{ secrets.GITHUB_TOKEN }}
# Gitea Actions 使用不同的变量名
echo "${{ secrets.GITEA_TOKEN }}" | docker login 172.24.0.10:3000 -u "${{ github.actor }}" --password-stdin
IMAGE_NAME="172.24.0.10:3000/${{ gitea.repository }}:latest"
docker build -t $IMAGE_NAME .