From af48145692121d271966deaf4889125997c52e9a Mon Sep 17 00:00:00 2001 From: Evgeniy Frolov Date: Tue, 15 Apr 2025 00:06:17 +0300 Subject: [PATCH] docs(readme, faq): use only one driver (#83) Signed-off-by: Evgeniy Frolov Co-authored-by: Aleksei Igrychev --- README.md | 47 ++--------------------------------------------- 1 file changed, 2 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index a9f8dbc..485770d 100644 --- a/README.md +++ b/README.md @@ -108,11 +108,7 @@ In the simplest case, if an [integrated GitHub Packages-like container registry] ### Building multi-platform images -To build multi-platform images or customize the build environment, you can use [docker/setup-buildx-action@v3](https://github.com/docker/setup-buildx-action). Below are two usage examples depending on the build driver: default `docker-container` and `docker`. - -#### 1. Docker buildx with default `docker-container` driver - -This is the default and recommended mode for most CI builds. It runs builds inside a container-based builder instance. +To build multi-platform images or customize the build environment, you can use [docker/setup-buildx-action@v3](https://github.com/docker/setup-buildx-action). ```yaml jobs: @@ -144,45 +140,6 @@ jobs: > No additional configuration is required, and QEMU is automatically used for cross-platform builds. -#### 2. Docker buildx with `docker` driver - -The `docker` driver runs builds directly on the host using the native Docker engine. This may be useful for compatibility reasons or specific local setups. To enable cross-platform builds with the `docker` driver, QEMU must be manually installed. - -```yaml -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx with docker driver - uses: docker/setup-buildx-action@v3 - with: - driver: docker - - - name: Install werf - uses: werf/actions/install@v2 - - - name: cr login - run: werf cr login -u ${{ secrets.REGISTRY_USER }} -p ${{ secrets.REGISTRY_TOKEN }} registry.example.com - - - name: converge - run: | - . $(werf ci-env github --as-file) - werf converge - env: - WERF_KUBECONFIG_BASE64: ${{ secrets.KUBE_CONFIG_BASE64_DATA }} - WERF_ENV: production -``` - -> When using the `docker` driver, make sure your Docker daemon supports the target platforms, and QEMU is available if you build for other architectures (e.g., `linux/arm64`). - ## License -Apache License 2.0, see [LICENSE](LICENSE) \ No newline at end of file +Apache License 2.0, see [LICENSE](LICENSE)