diff --git a/.github/workflows/build_rechunk.yml b/.github/workflows/build_rechunk.yml index 6f24ac2..32cd64d 100644 --- a/.github/workflows/build_rechunk.yml +++ b/.github/workflows/build_rechunk.yml @@ -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] @@ -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: | @@ -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 - \ No newline at end of file