From 4c8d1e6826504d8d1dfe3bda4221c0c8634c5eb5 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:47:50 +0200 Subject: [PATCH 1/2] ci: switch to stable buildkit image for load and push Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/ci.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 84d89b9..c4aa1fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1274,10 +1274,9 @@ jobs: uses: docker/setup-buildx-action@v3 with: version: ${{ inputs.buildx-version || env.BUILDX_VERSION }} - # TODO: use buildx-stable-1 image when v0.13 promoted driver-opts: | network=host - image=moby/buildkit:v0.13.0 + image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }} buildkitd-flags: --debug - name: Build @@ -1324,10 +1323,9 @@ jobs: uses: docker/setup-buildx-action@v3 with: version: ${{ inputs.buildx-version || env.BUILDX_VERSION }} - # TODO: use buildx-stable-1 image when v0.13 promoted driver-opts: | network=host - image=moby/buildkit:v0.13.0 + image=${{ inputs.buildkit-image || env.BUILDKIT_IMAGE }} buildkitd-flags: --debug - name: Build From 2ce6beaad494ef1cf54cb885867cbeff15abd10c Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:50:33 +0200 Subject: [PATCH 2/2] readme: update following latest buildx/buildkit releases Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- README.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/README.md b/README.md index 7c3f11a..0b9a44a 100644 --- a/README.md +++ b/README.md @@ -118,14 +118,6 @@ to the default Git context: tags: user/app:latest ``` -> **Warning** -> -> Subdirectory for Git context is available from [BuildKit v0.9.0](https://github.com/moby/buildkit/releases/tag/v0.9.0). -> If you're using the `docker` builder (default if `setup-buildx-action` not used), -> then BuildKit in Docker Engine will be used. As Docker Engine < v22.x.x embeds -> Buildkit 0.8.2 at the moment, it does not support this feature. It's therefore -> required to use the `setup-buildx-action` at the moment. - Building from the current repository automatically uses the [GitHub Token](https://docs.github.com/en/actions/security-guides/automatic-token-authentication), so it does not need to be passed. If you want to authenticate against another private repository, you have to use a [secret](https://docs.docker.com/build/ci/github-actions/secrets) @@ -232,7 +224,7 @@ Following inputs can be used as `step.with` keys | `network` | String | Set the networking mode for the `RUN` instructions during build | | `no-cache` | Bool | Do not use cache when building the image (default `false`) | | `no-cache-filters` | List/CSV | Do not cache specified stages | -| `outputs`¹ | List | List of [output destinations](https://docs.docker.com/engine/reference/commandline/buildx_build/#output) (format: `type=local,dest=path`) | +| `outputs` | List | List of [output destinations](https://docs.docker.com/engine/reference/commandline/buildx_build/#output) (format: `type=local,dest=path`) | | `platforms` | List/CSV | List of [target platforms](https://docs.docker.com/engine/reference/commandline/buildx_build/#platform) for build | | `provenance` | Bool/String | Generate [provenance](https://docs.docker.com/build/attestations/slsa-provenance/) attestation for the build (shorthand for `--attest=type=provenance`) | | `pull` | Bool | Always attempt to pull all referenced images (default `false`) | @@ -248,10 +240,6 @@ Following inputs can be used as `step.with` keys | `ulimit` | List | [Ulimit](https://docs.docker.com/engine/reference/commandline/buildx_build/#ulimit) options (e.g., `nofile=1024:1024`) | | `github-token` | String | GitHub Token used to authenticate against a repository for [Git context](#git-context) (default `${{ github.token }}`) | -> **Note** -> -> * ¹ multiple `outputs` are [not yet supported](https://github.com/moby/buildkit/issues/1555) - ### outputs The following outputs are available: