Creating Multi Arch Container

This commit is contained in:
Ben Brown 2024-01-26 09:47:47 +11:00
parent 42451f7f7d
commit 124f0545f8
1 changed files with 6 additions and 0 deletions

View File

@ -17,11 +17,17 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install qemu dependency
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Build images - name: Build images
id: build id: build
uses: redhat-actions/buildah-build@v2 uses: redhat-actions/buildah-build@v2
with: with:
image: ${{ github.repository }} image: ${{ github.repository }}
platforms: linux/amd64, linux/arm64
context: / context: /
tags: ${{ contains(github.ref_name, 'main') && 'latest' || github.ref_name }}-sdk tags: ${{ contains(github.ref_name, 'main') && 'latest' || github.ref_name }}-sdk
containerfiles: /Dockerfile containerfiles: /Dockerfile