Update build-with-latex-arm.yml

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

查看文件

@@ -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
docker buildx build \
--platform linux/arm64,linux/amd64 \
-f docs/GithubAction+NoLocal+Latex \
--output type=tar,dest=image.tar \
.
- name: De-tar the image file
run: |
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
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 }}