From e196855bed4b58c8e09e800f5ac8ef32c1658d35 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 28 Nov 2024 15:01:09 +0100 Subject: [PATCH] ci: use edge releases of buildx Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/build.yml | 20 ++++++++++---------- .github/workflows/docs-release.yml | 8 ++++++++ .github/workflows/docs-upstream.yml | 8 +++++++- .github/workflows/e2e.yml | 6 +++++- .github/workflows/validate.yml | 8 +++++++- 5 files changed, 37 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00d3953ea64..6cad2db0640 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,8 +28,8 @@ on: - 'docs/**' env: - BUILDX_VERSION: "latest" - BUILDKIT_IMAGE: "moby/buildkit:latest" + SETUP_BUILDX_VERSION: "edge" + SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" SCOUT_VERSION: "1.11.0" REPO_SLUG: "docker/buildx-bin" DESTDIR: "./bin" @@ -121,8 +121,8 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - version: ${{ env.BUILDX_VERSION }} - driver-opts: image=${{ env.BUILDKIT_IMAGE }} + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} buildkitd-flags: --debug - name: Build test image @@ -249,8 +249,8 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - version: ${{ env.BUILDX_VERSION }} - driver-opts: image=${{ env.BUILDKIT_IMAGE }} + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} buildkitd-flags: --debug - name: Run @@ -308,8 +308,8 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - version: ${{ env.BUILDX_VERSION }} - driver-opts: image=${{ env.BUILDKIT_IMAGE }} + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} buildkitd-flags: --debug - name: Build @@ -344,8 +344,8 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - version: ${{ env.BUILDX_VERSION }} - driver-opts: image=${{ env.BUILDKIT_IMAGE }} + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} buildkitd-flags: --debug - name: Docker meta diff --git a/.github/workflows/docs-release.yml b/.github/workflows/docs-release.yml index f975ee0cd90..43994712374 100644 --- a/.github/workflows/docs-release.yml +++ b/.github/workflows/docs-release.yml @@ -19,6 +19,10 @@ on: types: - released +env: + SETUP_BUILDX_VERSION: "edge" + SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" + jobs: open-pr: runs-on: ubuntu-24.04 @@ -46,6 +50,10 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} + buildkitd-flags: --debug - name: Generate yaml uses: docker/bake-action@v5 diff --git a/.github/workflows/docs-upstream.yml b/.github/workflows/docs-upstream.yml index 046c9a470f4..30964717e92 100644 --- a/.github/workflows/docs-upstream.yml +++ b/.github/workflows/docs-upstream.yml @@ -29,6 +29,10 @@ on: - '.github/workflows/docs-upstream.yml' - 'docs/**' +env: + SETUP_BUILDX_VERSION: "edge" + SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" + jobs: docs-yaml: runs-on: ubuntu-24.04 @@ -40,7 +44,9 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - version: latest + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} + buildkitd-flags: --debug - name: Build reference YAML docs uses: docker/bake-action@v5 diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 57dcff3feca..a650571fcaa 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -26,6 +26,8 @@ on: - 'docs/**' env: + SETUP_BUILDX_VERSION: "edge" + SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" DESTDIR: "./bin" K3S_VERSION: "v1.21.2-k3s1" @@ -39,7 +41,9 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - version: latest + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} + buildkitd-flags: --debug - name: Build uses: docker/bake-action@v5 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 8e0d623dff4..ec062aa8aa7 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -25,6 +25,10 @@ on: paths-ignore: - '.github/releases.json' +env: + SETUP_BUILDX_VERSION: "edge" + SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest" + jobs: prepare: runs-on: ubuntu-24.04 @@ -97,7 +101,9 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - version: latest + version: ${{ env.SETUP_BUILDX_VERSION }} + driver-opts: image=${{ env.SETUP_BUILDKIT_IMAGE }} + buildkitd-flags: --debug - name: Validate uses: docker/bake-action@v5