Skip to content

Commit

Permalink
change image build to use docker architecture emulation
Browse files Browse the repository at this point in the history
Until docker/actions-toolkit#317 is fixed use docker emulation to get
arm support.
  • Loading branch information
glemieux committed Aug 31, 2024
1 parent ace6c6a commit cbe026d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,17 @@ on:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# os: [ubuntu-latest]
os: [ubuntu-latest, macos-14]
runs-on: ${{matrix.os}}

platform: [linux/amd64, linux/arm64]

steps:
- name: checkout
uses: actions/checkout@v4

- name: Docker QEMU
uses: docker/setup-qemu-action@v3

- name: Docker Setup Buildx
uses: docker/[email protected]
Expand All @@ -33,6 +35,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
platform: ${{ matrix.platform }}
context: "{{defaultContext}}:docker/baseos/gcc1120"
push: true
tags: ngeetropics/baseos:testbuild-${{runner.arch}}
tags: ngeetropics/baseos:testbuild-${{ matrix.platform}}

0 comments on commit cbe026d

Please sign in to comment.