From d800e5e2ae9c5bb877c6b84515a6b669da70f149 Mon Sep 17 00:00:00 2001 From: Daniel Savosin Date: Sun, 17 Mar 2024 12:16:40 +0700 Subject: [PATCH] change creating custom driver with set up buildx action --- .github/workflows/continuous-integration.yml | 28 +++++++++----------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index ed153bc..a83169b 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -15,7 +15,8 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php_version: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] + # todo rollback changes + php_version: ['8.0', '8.3'] steps: - name: Check out repository uses: actions/checkout@v4 @@ -23,14 +24,11 @@ jobs: - name: Set up QEMU uses: docker/setup-qemu-action@v3 - - name: Set up custom docker builder - run: | - docker buildx create --name multiarch-builder - docker buildx use multiarch-builder - docker buildx inspect --bootstrap - + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to docker hub - uses: actions-hub/docker/login@master + uses: docker/login-action@v3 env: DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} @@ -43,12 +41,12 @@ jobs: - name: Build the Docker images ${{ matrix.php_version }} run: | docker buildx build --cache-from=dannecron/php-for-dev:${{ matrix.php_version }} \ - --push \ - --platform=linux/amd64,linux/arm64 \ - --build-arg BUILDKIT_INLINE_CACHE=1 \ - --build-arg COMPOSER_VERSION=${{ env.COMPOSER_VERSION }} \ - --tag=dannecron/php-for-dev:${{ matrix.php_version }} \ - $( (( "${{ matrix.php_version }}" -eq '8.0' )) && printf %s '--tag=dannecron/php-for-dev:latest') \ - ./v${{ matrix.php_version }} + --push \ + --platform=linux/amd64,linux/arm64 \ + --build-arg COMPOSER_VERSION=${{ env.COMPOSER_VERSION }} \ + --tag=dannecron/php-for-dev:${{ matrix.php_version }} \ + $( (( "${{ matrix.php_version }}" -eq '8.0' )) && printf %s '--tag=dannecron/php-for-dev:latest') \ + ./v${{ matrix.php_version }} echo "Done" +