Add second build job on native arch for ARM64

This commit is contained in:
benoit74 2025-02-06 21:17:46 +00:00
parent 4ef9a0d380
commit cea10bd3b5
No known key found for this signature in database
GPG Key ID: B89606434FC7B530
2 changed files with 52 additions and 4 deletions

View File

@ -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
@ -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

View File

@ -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
@ -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