From 124f0545f88b83d3bb04636d09b0f4dceb989d88 Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Fri, 26 Jan 2024 09:47:47 +1100 Subject: [PATCH] Creating Multi Arch Container --- .github/workflows/build-and-push-to-registry.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-and-push-to-registry.yml b/.github/workflows/build-and-push-to-registry.yml index 44f1ea6..27a85eb 100644 --- a/.github/workflows/build-and-push-to-registry.yml +++ b/.github/workflows/build-and-push-to-registry.yml @@ -17,11 +17,17 @@ jobs: - name: Checkout sources uses: actions/checkout@v4 + - name: Install qemu dependency + run: | + sudo apt-get update + sudo apt-get install -y qemu-user-static + - name: Build images id: build uses: redhat-actions/buildah-build@v2 with: image: ${{ github.repository }} + platforms: linux/amd64, linux/arm64 context: / tags: ${{ contains(github.ref_name, 'main') && 'latest' || github.ref_name }}-sdk containerfiles: /Dockerfile