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 73581bc
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/publish_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
env:
REGISTRY: ghcr.io
jobs:
Publish:
name: Publish example-restapi image
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
publish:
strategy:
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- name: Log in to the Container registry
Expand All @@ -20,14 +20,11 @@ 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
- name: Build and push Docker imageq
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
provenance: false
platforms: ${{ matrix.platform }}
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 73581bc

Please sign in to comment.