Skip to content

Commit

Permalink
chore: Use dedicated runner for building ARM image to speed up the pr…
Browse files Browse the repository at this point in the history
…ocess
  • Loading branch information
andresrosenthal committed Feb 7, 2025
1 parent 9045c8c commit 8afd05c
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/publish_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:
env:
REGISTRY: ghcr.io
jobs:
Publish:
name: Publish example-restapi image
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
publish:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm]

steps:
- uses: actions/checkout@v4
- name: Log in to the Container registry
Expand All @@ -20,14 +21,10 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
provenance: false
tags: ghcr.io/nordic-institute/xrddev-example-restapi:latest
- name: Clean old images
uses: snok/container-retention-policy@v2
Expand Down

0 comments on commit 8afd05c

Please sign in to comment.