Update build-with-latex-arm.yml
This commit is contained in:
16
.github/workflows/build-with-latex-arm.yml
vendored
16
.github/workflows/build-with-latex-arm.yml
vendored
@@ -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
|
name: build-with-latex-arm
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -40,12 +39,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
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
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: output
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/arm64,linux/amd64
|
|
||||||
file: docs/GithubAction+NoLocal+Latex
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user