From 58702337bbadda97cd8665f407efd9b719a1b4da Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Sun, 6 Oct 2024 17:47:40 +0800 Subject: [PATCH] Update build-with-latex-arm.yml --- .github/workflows/build-with-latex-arm.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-with-latex-arm.yml b/.github/workflows/build-with-latex-arm.yml index 25fe96c5..ac0afceb 100644 --- a/.github/workflows/build-with-latex-arm.yml +++ b/.github/workflows/build-with-latex-arm.yml @@ -1,4 +1,3 @@ -# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages name: build-with-latex-arm on: @@ -40,12 +39,19 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build and push Docker image + - name: Build Docker image as tar file + run: | + docker buildx build --output type=tar,dest=image.tar --platform linux/arm64,linux/amd64 . + + - name: De-tar the image file + run: | + mkdir -p output + tar -xf image.tar -C output + + - name: Push Docker image uses: docker/build-push-action@v6 with: - context: . + context: output push: true - platforms: linux/arm64,linux/amd64 - file: docs/GithubAction+NoLocal+Latex tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}