更新 .github/workflows/buidl_and_push_ghcr.yml
Some checks failed
Gitea Docker Image CI / build (push) Failing after 6s

This commit is contained in:
2025-12-18 06:47:58 +00:00
parent 4105ad5e8a
commit 31ad6916ed

View File

@@ -41,7 +41,7 @@ jobs:
HOST="${{ steps.prep.outputs.registry_host }}"
# 生成 config.json
echo "{\"auths\":{\"$HOST\":{\"username\":\"${{ gitea.actor }}\",\"password\":\"${{ secrets.GITHUB_TOKEN }}\"}}}" > $HOME/.docker/config.json
echo "{\"auths\":{\"$HOST\":{\"username\":\"${{ gitea.actor }}\",\"password\":\"${{ secrets.PACKAGES_TOKEN }}\"}}}" > $HOME/.docker/config.json
# 3. Kaniko 构建
# 注意 destination 这里使用了处理过的 registry_host (不带 http)