Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: build both AMD64 and ARM64 #11

Merged
merged 2 commits into from
Jan 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions .github/workflows/build_rechunk.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: Publish rechunk to GHCR

on:
pull_request:
paths:
- "./Dockerfile"
- "./.github/workflows/build_rechunk.yml"
workflow_dispatch:
inputs:
tag:
description: 'The version to tag the package with:'
description: "The version to tag the package with:"
required: true

release:
types: [published]

Expand All @@ -24,12 +28,23 @@ jobs:

steps:
- name: Login to GHCR
if: github.event_name == 'workflow_dispatch' || github.event_name == 'release'
run: echo "${{ secrets.GITHUB_TOKEN }}" | sudo podman login ghcr.io -u ${{ github.actor }} --password-stdin
- uses: actions/checkout@v3

- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Build Image
run: |
sudo podman build --tag 'fedora_build' .
sudo podman build \
--tag 'fedora_build' \
--platform 'linux/amd64,linux/arm64' \
.

- name: Upload Image
if: github.event_name == 'workflow_dispatch' || github.event_name == 'release'
id: upload
shell: bash
run: |
Expand All @@ -48,4 +63,3 @@ jobs:
sudo podman push ghcr.io/hhd-dev/rechunk:stable
sudo podman tag fedora_build ghcr.io/hhd-dev/rechunk:$VERSION
sudo podman push ghcr.io/hhd-dev/rechunk:$VERSION