Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Menghuan1918 committed Oct 6, 2024
1 parent b52d13b commit be32013
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/build-with-latex-arm.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://docs.github.com/en/actions/publishing-packages/publishing-docker-images#publishing-images-to-github-packages
name: build-with-latex-arm

on:
Expand All @@ -7,7 +8,7 @@ on:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}_with_latex
IMAGE_NAME: ${{ github.repository }}_with_latex_arm

jobs:
build-and-push-image:
Expand Down Expand Up @@ -39,19 +40,12 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build Docker image as tar file
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
- name: Push Docker image
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: output
context: .
push: true
platforms: linux/arm64
file: docs/GithubAction+NoLocal+Latex
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit be32013

Please sign in to comment.