This commit is contained in:
@@ -28,7 +28,8 @@ jobs:
|
|||||||
|
|
||||||
# 2. 构建并推送镜像
|
# 2. 构建并推送镜像
|
||||||
- name: 配置 Buildx
|
- name: 配置 Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
# 使用 gitea.com 镜像源以解决 GitHub 连接问题
|
||||||
|
uses: https://gitea.com/docker/setup-buildx-action@v2
|
||||||
with:
|
with:
|
||||||
driver-opts: network=host
|
driver-opts: network=host
|
||||||
buildkitd-flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
|
buildkitd-flags: --allow-insecure-entitlement security.insecure --allow-insecure-entitlement network.host
|
||||||
@@ -40,7 +41,8 @@ jobs:
|
|||||||
insecure = true
|
insecure = true
|
||||||
|
|
||||||
- name: 构建并推送 Docker 镜像
|
- name: 构建并推送 Docker 镜像
|
||||||
uses: docker/build-push-action@v4
|
# 使用 gitea.com 镜像源以解决 GitHub 连接问题
|
||||||
|
uses: https://gitea.com/docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
Reference in New Issue
Block a user