From 57c0f899c6defee54f751a07652a8e11800674c9 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Fri, 6 May 2022 08:51:42 -0700 Subject: [PATCH 1/2] build multi arch controller image. --- .github/workflows/docker-build.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index a29e37b..c97d113 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -21,6 +21,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} @@ -46,6 +50,7 @@ jobs: uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: context: . + platforms: linux/amd64,linux/arm64 file: docker/Dockerfile.collector push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} From d48d0b9d931b6532af0c11ba32954972263d5231 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Fri, 6 May 2022 09:00:14 -0700 Subject: [PATCH 2/2] build multi arch images --- .github/workflows/docker-build.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index c97d113..34d1d43 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -49,8 +49,8 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: - context: . platforms: linux/amd64,linux/arm64 + context: . file: docker/Dockerfile.collector push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} @@ -65,6 +65,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} @@ -89,6 +93,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: + platforms: linux/amd64,linux/arm64 context: . file: docker/Dockerfile.web push: ${{ github.event_name != 'pull_request' }} @@ -104,6 +109,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} @@ -128,6 +137,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc with: + platforms: linux/amd64,linux/arm64 context: . file: docker/Dockerfile push: ${{ github.event_name != 'pull_request' }}