Skip to content

Commit

Permalink
Install qemu to build container
Browse files Browse the repository at this point in the history
  • Loading branch information
f0reachARR committed Feb 22, 2024
1 parent f18daa7 commit 83c4009
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/Docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,18 @@ on:
jobs:
build_docker_image:
name: Build Docker Image
runs-on: ${{ matrix.runs_on }}
runs-on: ubuntu-22.04
timeout-minutes: 720
strategy:
matrix:
rosdistro: [humble]
runs_on: [ubuntu-22.04, macos-14] # macos-14 is added for arm support. See also https://x.com/github/status/1752458943245189120?s=20
steps:
- name: Install docker for mac runner
if: ${{ matrix.runs_on == 'macos-14'}}
run: |
brew install wget
wget https://download.docker.com/mac/static/stable/aarch64/docker-25.0.3.tgz
tar -xvzf docker-25.0.3.tgz
cp docker/docker /usr/local/bin/
mkdir -p $HOME/.docker/cli-plugins
wget https://github.com/docker/buildx/releases/download/v0.12.1/buildx-v0.12.1.darwin-arm64 -O $HOME/.docker/cli-plugins/docker-buildx
chmod a+x $HOME/.docker/cli-plugins/docker-buildx
- name: Install docker for ubuntu runner
if: ${{ matrix.runs_on == 'ubuntu-22.04' }}
uses: docker/setup-buildx-action@v3

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

- uses: actions/checkout@v3

- name: Login to GitHub Container Registry
Expand All @@ -53,7 +43,6 @@ jobs:

- name: Build and push (amd64)
uses: docker/bake-action@v3
if: ${{ matrix.runs_on == 'ubuntu-22.04' }}
with:
files: |
./docker-bake.hcl
Expand Down

0 comments on commit 83c4009

Please sign in to comment.