diff --git a/.github/workflows/docker-push.yml b/.github/workflows/docker-push.yml index 0775306..3590b4b 100644 --- a/.github/workflows/docker-push.yml +++ b/.github/workflows/docker-push.yml @@ -51,11 +51,12 @@ jobs: latest=${{ contains(github.event.head_commit.message, '[release]') == true }} tags: | type=raw,value=${{ env.XPIPE_TAG }} - - name: Build and push Docker image + - name: Build and push Docker image (amd64) id: push uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . + file: ./Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} @@ -63,7 +64,22 @@ jobs: "XPIPE_VERSION=${{ env.XPIPE_VERSION }}" "XPIPE_REPOSITORY=${{ env.XPIPE_REPOSITORY }}" "XPIPE_PACKAGE=${{ env.XPIPE_PACKAGE }}" - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64 + - name: Build and push Docker image (arm64) + id: push + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: . + file: ./Dockerfile.aarch64 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + build-args: | + "XPIPE_VERSION=${{ env.XPIPE_VERSION }}" + "XPIPE_REPOSITORY=${{ env.XPIPE_REPOSITORY }}" + "XPIPE_PACKAGE=${{ env.XPIPE_PACKAGE }}" + platforms: linux/arm64 + if: contains(github.event.head_commit.message, '[release]') - name: Generate artifact attestation uses: actions/attest-build-provenance@v1 with: