Update build-with-latex-arm.yml

这个提交包含在:
Menghuan1918
2024-10-06 20:04:42 +08:00
提交者 GitHub
父节点 55153b3e45
当前提交 9af92549b5

查看文件

@@ -39,19 +39,18 @@ jobs:
with: with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build Docker image as tar file - name: Build Docker image and export as tar
run: | run: |
docker buildx build --output type=tar,dest=image.tar --platform linux/arm64,linux/amd64 ./docs/GithubAction+NoLocal+Latex docker buildx build \
--platform linux/arm64,linux/amd64 \
- name: De-tar the image file -f docs/GithubAction+NoLocal+Latex \
run: | --output type=tar,dest=image.tar \
mkdir -p output .
tar -xf ./docs/image.tar -C output
- name: Extract tar file
run: tar -xf image.tar -C extracted
- name: Push Docker image - name: Push Docker image
uses: docker/build-push-action@v6 run: |
with: docker load --input image.tar
context: output docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.tags }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}