Skip to content

Commit

Permalink
Add automatic multi-architecture Docker builds (#2274)
Browse files Browse the repository at this point in the history
We currently only release `amd64` images. Some users may want to run on
`arm64` platforms provided by various cloud providers, and developers
may operate from arm64-based Macs. This PR adds multi-architecture
builds to our automated release process.
  • Loading branch information
williamjallen authored Jun 18, 2024
1 parent 3e4f13a commit 2fd6d35
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-latest-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
name: Build standard production image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash:latest"
target: cdash
Expand All @@ -39,6 +40,7 @@ jobs:
name: Build UBI production image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash:latest-ubi"
target: cdash
Expand All @@ -60,6 +62,7 @@ jobs:
name: Build standard worker image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash-worker:latest"
target: cdash-worker
Expand All @@ -79,6 +82,7 @@ jobs:
name: Build UBI worker image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash-worker:latest-ubi"
target: cdash-worker
Expand All @@ -100,6 +104,7 @@ jobs:
name: Build standard development image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash:testing"
target: cdash
Expand All @@ -121,6 +126,7 @@ jobs:
name: Build UBI development image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash:testing-ubi"
target: cdash
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
name: Build ${{ github.ref_name }} image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash:${{ github.ref_name }}"
target: cdash
Expand All @@ -28,6 +29,7 @@ jobs:
name: Build ${{ github.ref_name }} worker image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash-worker:${{ github.ref_name }}"
target: cdash-worker
Expand All @@ -47,6 +49,7 @@ jobs:
name: Build ${{ github.ref_name }} image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash:${{ github.ref_name }}-ubi"
target: cdash
Expand All @@ -58,6 +61,7 @@ jobs:
name: Build ${{ github.ref_name }} worker image
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: "kitware/cdash-worker:${{ github.ref_name }}-ubi"
target: cdash-worker
Expand Down

0 comments on commit 2fd6d35

Please sign in to comment.