Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Build for multiple architectures #18

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ jobs:
- uses: actions/checkout@v2

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME --build-arg JULIA_VERSION=${{ matrix.julia-version }}
run: |
docker buildx create --use --bootstrap
docker buildx build . --file Dockerfile --tag $IMAGE_NAME --build-arg JULIA_VERSION=${{ matrix.julia-version }} --platform linux/amd64,linux/arm64

- name: Log into GitHub Container Registry
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
Expand Down Expand Up @@ -91,7 +93,9 @@ jobs:
- uses: actions/checkout@v2

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME --build-arg JULIA_VERSION=latest
run: |
docker buildx --use --bootstrap
docker buildx build . --file Dockerfile --tag $IMAGE_NAME --build-arg JULIA_VERSION=latest --platform linux/amd64,linux/arm64

- name: Log into GitHub Container Registry
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
Expand Down