Skip to content

Commit

Permalink
Use new Linux ARM64 runner in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC-DLS committed Jan 18, 2025
1 parent 057caea commit 9c8c83f
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ on:
jobs:
push_to_registry:
name: Build and push Docker image to GitHub Packages
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
ARCH: ["x86_64", "aarch64"]
PLAT: ["2014"]
include:
- ARCH: x86_64
OS: ubuntu-24.04
PLAT: "2014"
- ARCH: aarch64
OS: ubuntu-24.04-arm
PLAT: "2014"

# The type of runner that the job will run on
runs-on: ${{ matrix.OS }}

steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -38,8 +39,8 @@ jobs:
run: | # Uses shell parameter expansion to lowercase
echo "TAG=ghcr.io/${GITHUB_REPOSITORY,,}-${{ matrix.PLAT }}_${{ matrix.ARCH }}:latest" >> $GITHUB_ENV
- name: Build and push image to GitHub Packages
uses: docker/build-push-action@v2
- name: Build and push image to GitHub Packages (${{ matrix.ARCH }})
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
Expand Down

0 comments on commit 9c8c83f

Please sign in to comment.