更新 .github/workflows/docker.yml
This commit is contained in:
@@ -28,7 +28,7 @@ jobs:
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
# ✅ 修改点1: 使用内网地址,避开 Cloudflare 和 WAF
|
||||
registry: gitea:3000
|
||||
registry: 172.18.0.21:3000
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GGITEA_PAT }}
|
||||
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
with:
|
||||
# ✅ 修改点2: 镜像名必须以 gitea:3000 开头,才能推送到内网注册中心
|
||||
# Gitea 会自动处理映射,你在外网依然可以用 git.chgr.cc 拉取
|
||||
images: gitea:3000/${{ github.repository }}
|
||||
images: 172.18.0.21:3000/${{ github.repository }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
|
||||
Reference in New Issue
Block a user