From 20335866117354c9fbf491c7462a9f4675e7590f Mon Sep 17 00:00:00 2001 From: Daniel Savosin Date: Sun, 17 Mar 2024 10:42:21 +0700 Subject: [PATCH] trying to add multiarhc build, again --- .github/workflows/continuous-integration.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 962d485..065c4b8 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -20,6 +20,9 @@ jobs: - name: Check out repository uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Login to docker hub uses: actions-hub/docker/login@master env: @@ -33,7 +36,8 @@ jobs: - name: Build the Docker images ${{ matrix.php_version }} run: | - DOCKER_BUILDKIT=1 docker build --cache-from=dannecron/php-for-dev:${{ matrix.php_version }} \ + docker buildx build --cache-from=dannecron/php-for-dev:${{ matrix.php_version }} \ + --platform=linux/amd64,linux/arm64 \ --build-arg BUILDKIT_INLINE_CACHE=1 \ --build-arg COMPOSER_VERSION=${{ env.COMPOSER_VERSION }} \ --tag=localhost/php-for-dev:${{ matrix.php_version }} \