ci(workflows): 增加 Docker Buildx 设置步骤
Some checks failed
Build and Push Docker / build (push) Failing after 29m44s
Some checks failed
Build and Push Docker / build (push) Failing after 29m44s
- 在 GitHub Actions 工作流中添加 Docker Buildx 配置 - 使用最新的 moby/buildkit 镜像作为驱动选项 - 优化构建环境以支持多平台构建功能
This commit is contained in:
parent
bce6aaa33f
commit
ecafe1984c
@ -16,6 +16,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver: docker-container
|
||||||
|
driver-opts: image=moby/buildkit:latest
|
||||||
|
|
||||||
- name: Cache Docker layers
|
- name: Cache Docker layers
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
@ -23,7 +29,6 @@ jobs:
|
|||||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-buildx-
|
${{ runner.os }}-buildx-
|
||||||
|
|
||||||
- name: Extract version
|
- name: Extract version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user