更新 .github/workflows/build.yaml
This commit is contained in:
18
.github/workflows/build.yaml
vendored
18
.github/workflows/build.yaml
vendored
@@ -24,8 +24,17 @@ jobs:
|
|||||||
ls -la ${{ github.workspace }}
|
ls -la ${{ github.workspace }}
|
||||||
echo "🍏 此作业的状态是 ${{ job.status }}。"
|
echo "🍏 此作业的状态是 ${{ job.status }}。"
|
||||||
|
|
||||||
- name: 设置 Docker Buildx
|
# - name: 设置 Docker Buildx
|
||||||
|
# uses: docker/setup-buildx-action@v3
|
||||||
|
- name: 设置带代理的 Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver: docker-container
|
||||||
|
driver-opts: |
|
||||||
|
env.HTTP_PROXY=http://10.0.0.52:7890
|
||||||
|
env.HTTPS_PROXY=http://10.0.0.52:7890
|
||||||
|
env.ALL_PROXY=socks://10.0.0.52:7890
|
||||||
|
env.NO_PROXY=localhost,127.0.0.1,aliyuncs.com,registry-vpc.cn-beijing.aliyuncs.com
|
||||||
|
|
||||||
- name: 从标签名中提取版本号
|
- name: 从标签名中提取版本号
|
||||||
id: extract_version
|
id: extract_version
|
||||||
@@ -38,7 +47,7 @@ jobs:
|
|||||||
- name: 登录 Docker 注册表
|
- name: 登录 Docker 注册表
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: registry.cn-beijing.aliyuncs.com
|
registry: registry-vpc.cn-beijing.aliyuncs.com
|
||||||
username: ${{ secrets.ALI_DOCKER_REGISTRY_USERNAME }}
|
username: ${{ secrets.ALI_DOCKER_REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.ALI_DOCKER_REGISTRY_PASSWORD }}
|
password: ${{ secrets.ALI_DOCKER_REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
@@ -49,13 +58,10 @@ jobs:
|
|||||||
file: ./Dockerfile # 确保Dockerfile路径正确
|
file: ./Dockerfile # 确保Dockerfile路径正确
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
registry.cn-beijing.aliyuncs.com/d8dcloud/virtual-kubelet:alpine
|
registry-vpc.cn-beijing.aliyuncs.com/d8dcloud/virtual-kubelet:alpine
|
||||||
build-args: |
|
build-args: |
|
||||||
GOLANG_CI_LINT_VERSION=v1.68.0
|
GOLANG_CI_LINT_VERSION=v1.68.0
|
||||||
BUILD_TAGS=""
|
BUILD_TAGS=""
|
||||||
HTTP_PROXY=http://10.0.0.52:7890
|
|
||||||
HTTPS_PROXY=http://10.0.0.52:7890
|
|
||||||
ALL_PROXY=socks://10.0.0.52:7890
|
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.title=Virtual Kubelet
|
org.opencontainers.image.title=Virtual Kubelet
|
||||||
org.opencontainers.image.description=Kubernetes Virtual Kubelet implementation
|
org.opencontainers.image.description=Kubernetes Virtual Kubelet implementation
|
||||||
|
|||||||
Reference in New Issue
Block a user