This commit is contained in:
@@ -15,7 +15,8 @@ jobs:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v3
|
||||
# 使用 gitea.com 镜像源以解决 GitHub 连接问题
|
||||
uses: https://gitea.com/actions/checkout@v3
|
||||
|
||||
# 1. 登录 Docker Registry (已跳过,无密码模式)1
|
||||
# - name: 登录到私有 Registry
|
||||
@@ -27,7 +28,7 @@ jobs:
|
||||
|
||||
# 2. 构建并推送镜像
|
||||
- name: 配置 Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: https://gitea.com/actions/setup-buildx-action@v2
|
||||
with:
|
||||
driver-opts: network=host
|
||||
buildkitd-flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
|
||||
@@ -39,7 +40,7 @@ jobs:
|
||||
insecure = true
|
||||
|
||||
- name: 构建并推送 Docker 镜像
|
||||
uses: docker/build-push-action@v4
|
||||
uses: https://gitea.com/actions/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
|
||||
Reference in New Issue
Block a user