From c47d94b622fec459550b10d0cef7c4e53f6b5f0b Mon Sep 17 00:00:00 2001 From: Shahid Shaikh Date: Fri, 8 May 2020 07:56:46 -0700 Subject: [PATCH] Add s390x support with docker buildx Signed-off-by: Shahid Shaikh --- .github/workflows/build.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 45ca23fc67..f5d6ed5e0e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,21 @@ jobs: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - - name: Build the Docker image - run: docker build . + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Build and Push + id: docker_build + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64,linux/s390x + push: false