From cea10bd3b5cb3866f1c18680fbe0ce307391e367 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Thu, 6 Feb 2025 21:17:46 +0000 Subject: [PATCH] Add second build job on native arch for ARM64 --- .github/workflows/Publish.yml | 28 ++++++++++++++++++-- .github/workflows/PublishDockerDevImage.yaml | 28 ++++++++++++++++++-- 2 files changed, 52 insertions(+), 4 deletions(-) diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml index 6fabc32..0b22e1c 100644 --- a/.github/workflows/Publish.yml +++ b/.github/workflows/Publish.yml @@ -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 diff --git a/.github/workflows/PublishDockerDevImage.yaml b/.github/workflows/PublishDockerDevImage.yaml index d893882..61c9140 100644 --- a/.github/workflows/PublishDockerDevImage.yaml +++ b/.github/workflows/PublishDockerDevImage.yaml @@ -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