Skip to content

Commit

Permalink
Build docker container for ARM and AMD
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLoecker committed Nov 29, 2023
1 parent 987cb34 commit b91b461
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/container_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ env:

jobs:
build-and-push-image:
name: Build and Push Docker Image
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
name: Build and Push Docker Image

strategy:
matrix:
platform: [ linux/amd64, linux/arm64 ]

steps:
# Checkout the repository
Expand All @@ -38,15 +42,14 @@ jobs:
type=semver,pattern={{version}}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') && endsWith(github.ref, 'master') }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: linux/amd64

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform }}

- name: Set up Jupyter Notebook Cleaner
uses: actions/setup-python@v4
Expand Down Expand Up @@ -75,5 +78,5 @@ jobs:
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64
platforms: ${{ matrix.platform }}

0 comments on commit b91b461

Please sign in to comment.