From 9af92549b50f82b634173465d1338f84ced21bc9 Mon Sep 17 00:00:00 2001 From: Menghuan1918 Date: Sun, 6 Oct 2024 20:04:42 +0800 Subject: [PATCH] Update build-with-latex-arm.yml --- .github/workflows/build-with-latex-arm.yml | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-with-latex-arm.yml b/.github/workflows/build-with-latex-arm.yml index 2f34265b..879687de 100644 --- a/.github/workflows/build-with-latex-arm.yml +++ b/.github/workflows/build-with-latex-arm.yml @@ -39,19 +39,18 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Build Docker image as tar file + - name: Build Docker image and export as tar run: | - docker buildx build --output type=tar,dest=image.tar --platform linux/arm64,linux/amd64 ./docs/GithubAction+NoLocal+Latex - - - name: De-tar the image file - run: | - mkdir -p output - tar -xf ./docs/image.tar -C output + docker buildx build \ + --platform linux/arm64,linux/amd64 \ + -f docs/GithubAction+NoLocal+Latex \ + --output type=tar,dest=image.tar \ + . + + - name: Extract tar file + run: tar -xf image.tar -C extracted - name: Push Docker image - uses: docker/build-push-action@v6 - with: - context: output - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} + run: | + docker load --input image.tar + docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}