From 285eee04fe1b38fe83800200c06678037954bd67 Mon Sep 17 00:00:00 2001 From: Guillaume Mazoyer Date: Thu, 21 Nov 2024 23:13:31 +0100 Subject: [PATCH] Try to build both amd64 annd arm64 images --- .github/workflows/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cd590fb..e6135a5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,6 @@ jobs: - ./build.sh main os: - ubuntu-latest - # - macos-latest fail-fast: false env: GH_ACTION: enable @@ -37,16 +36,14 @@ jobs: - name: Set up Docker Buildx id: buildx-setup uses: docker/setup-buildx-action@v3 - # - name: Set BUILDX_PLATFORM to ARM64 - # if: matrix.os == 'macos-latest' - # run: echo "BUILDX_PLATFORM=linux/arm64" >>"${GITHUB_ENV}" + - name: Set BUILDX_PLATFORM to AMD64,ARM64 + run: echo "BUILDX_PLATFORM=linux/amd64,linux/arm64" >>"${GITHUB_ENV}" - name: Build the image for '${{ matrix.os }}' with '${{ matrix.build_cmd }}' id: docker-build run: ${{ matrix.build_cmd }} env: BUILDX_BUILDER_NAME: ${{ steps.buildx-setup.outputs.name }} - name: Set Peering Manager container start_period higher on ARM64 - if: matrix.os == 'macos-latest' run: echo "PEERINGMANAGER_START_PERIOD=240s" >>"${GITHUB_ENV}" - name: Test the image run: IMAGE="${FINAL_DOCKER_TAG}" ./test.sh