Skip to content

Commit

Permalink
Add second build job on native arch for ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Feb 6, 2025
1 parent 4ef9a0d commit cea10bd
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
types: [published]

jobs:
publish:
runs-on: ubuntu-22.04
publish-amd64:
runs-on: ubuntu-24.04
name: "Publish for AMD64"

steps:
- uses: actions/checkout@v4
Expand All @@ -26,3 +27,26 @@ jobs:
repo_overview: auto
platforms: |
linux/amd64
publish-arm64:
runs-on: ubuntu-24.04-arm
name: "Publish for ARM64"

steps:
- uses: actions/checkout@v4

- name: Build and push Docker image
uses: openzim/docker-publish-action@v10
with:
image-name: openzim/zimit
tag-pattern: /^v([0-9.]+)$/
latest-on-tag: true
restrict-to: openzim/zimit
registries: ghcr.io
credentials:
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
repo_description: auto
repo_overview: auto
platforms: |
linux/arm64
28 changes: 26 additions & 2 deletions .github/workflows/PublishDockerDevImage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-22.04
publish-amd64:
runs-on: ubuntu-24.04
name: "Publish for AMD64"

steps:
- uses: actions/checkout@v4
Expand All @@ -28,3 +29,26 @@ jobs:
repo_overview: auto
platforms: |
linux/amd64
publish-arm64:
runs-on: ubuntu-24.04-arm64
name: "Publish for ARM64"

steps:
- uses: actions/checkout@v4

- name: Build and push Docker image
uses: openzim/docker-publish-action@v10
with:
image-name: openzim/zimit
manual-tag: dev
latest-on-tag: false
restrict-to: openzim/zimit
registries: ghcr.io
credentials:
GHCRIO_USERNAME=${{ secrets.GHCR_USERNAME }}
GHCRIO_TOKEN=${{ secrets.GHCR_TOKEN }}
repo_description: auto
repo_overview: auto
platforms: |
linux/arm64

0 comments on commit cea10bd

Please sign in to comment.