更新 .github/workflows/build.yaml
Some checks failed
Virtual Kubelet Docker Build and Deploy / build-and-deploy (push) Has been cancelled

This commit is contained in:
2025-10-03 02:13:12 +00:00
parent 795b7e399d
commit 5480aa25b8

View File

@@ -30,6 +30,9 @@ jobs:
with:
driver: docker # 明确指定使用 docker 驱动
network: host
driver-opts: |
env.http_proxy=http://10.0.0.52:7890
env.https_proxy=http://10.0.0.52:7890
- name: 从标签名中提取版本号
@@ -58,10 +61,6 @@ jobs:
build-args: |
GOLANG_CI_LINT_VERSION=v1.68.0
BUILD_TAGS=""
HTTP_PROXY=http://10.0.0.52:7890 # 添加HTTP代理
HTTPS_PROXY=http://10.0.0.52:7890 # 添加HTTPS代理
# GOPROXY=https://goproxy.cn,direct
# GOSUMDB=off
labels: |
org.opencontainers.image.title=Virtual Kubelet
org.opencontainers.image.description=Kubernetes Virtual Kubelet implementation