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 04bcbed
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 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"]
PLAT: ["2014", "2014"]
include:
- ARCH: x86_64
OS: ubuntu-latest
- ARCH: aarch64
OS: ubuntu-24.04-arm

# 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 @@ -39,7 +40,7 @@ jobs:
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
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
Expand Down

0 comments on commit 04bcbed

Please sign in to comment.