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