Skip to content

Commit

Permalink
for cisagov#557, try building dirinit with arm runner
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Feb 3, 2025
1 parent 6faef01 commit 62f448f
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/dirinit-build-and-push-ghcr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
docker:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
permissions:
actions: write
packages: write
Expand All @@ -23,9 +23,13 @@ jobs:
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
include:
- os: ubuntu-24.04
arch: amd64
platform: linux/amd64
- os: ubuntu-24.04-arm
arch: arm64
platform: linux/arm64
steps:
-
name: Cancel previous run in progress
Expand Down Expand Up @@ -62,12 +66,6 @@ jobs:
shell: bash
run: echo "mversion=$(grep -P "^\s+image:.*/malcolm/" docker-compose-dev.yml | awk '{print $2}' | cut -d':' -f2 | uniq -c | sort -nr | awk '{print $2}' | head -n 1)" >> $GITHUB_OUTPUT
id: extract_malcolm_version
-
name: Set up QEMU
id: setup-qemu
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -83,7 +81,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfiles/dirinit.Dockerfile
Expand Down

0 comments on commit 62f448f

Please sign in to comment.