Skip to content

Commit acfd04b

Browse files
authored
Merge pull request #21525 from dvdksn/edge-buildx
ci: use edge releases of buildx
2 parents 380ca6c + 9b3c155 commit acfd04b

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ on:
1111
- main
1212
pull_request:
1313

14+
env:
15+
# Use edge release of buildx (latest RC, fallback to latest stable)
16+
SETUP_BUILDX_VERSION: edge
17+
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
18+
1419
permissions:
1520
contents: read # to fetch code (actions/checkout)
1621

@@ -24,6 +29,9 @@ jobs:
2429
-
2530
name: Set up Docker Buildx
2631
uses: docker/setup-buildx-action@v3
32+
with:
33+
version: ${{ env.SETUP_BUILDX_VERSION }}
34+
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
2735
-
2836
name: Build
2937
uses: docker/bake-action@v5

.github/workflows/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
- main
1313
- published
1414

15+
env:
16+
# Use edge release of buildx (latest RC, fallback to latest stable)
17+
SETUP_BUILDX_VERSION: edge
18+
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
19+
1520
# these permissions are needed to interact with GitHub's OIDC Token endpoint.
1621
permissions:
1722
id-token: write
@@ -80,6 +85,9 @@ jobs:
8085
-
8186
name: Set up Docker Buildx
8287
uses: docker/setup-buildx-action@v3
88+
with:
89+
version: ${{ env.SETUP_BUILDX_VERSION }}
90+
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
8391
-
8492
name: Build website
8593
uses: docker/bake-action@v5

.github/workflows/validate-upstream.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
type: boolean
2424
required: false
2525

26+
env:
27+
# Use edge release of buildx (latest RC, fallback to latest stable)
28+
SETUP_BUILDX_VERSION: edge
29+
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
30+
2631
jobs:
2732
run:
2833
runs-on: ubuntu-24.04
@@ -80,6 +85,9 @@ jobs:
8085
-
8186
name: Set up Docker Buildx
8287
uses: docker/setup-buildx-action@v3
88+
with:
89+
version: ${{ env.SETUP_BUILDX_VERSION }}
90+
driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }}
8391
-
8492
name: Validate
8593
uses: docker/bake-action@v5

0 commit comments

Comments
 (0)