Skip to content

Commit

Permalink
ci: Enable multiplatform builds for amd64 and arm64 (#134)
Browse files Browse the repository at this point in the history
* Add the 'platforms' argument to the docker/build-push-action GitHub
  Action and pass the platform names to enable build for both amd64 and
  arm64 architectures. This will enable Apple silicon machines to run
  the Docker images without emulation which will significantly improve
  runtime performance.
  • Loading branch information
matthewfeickert authored Feb 28, 2024
1 parent e2c2db3 commit fe74205
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
push: true
platforms: linux/amd64,linux/arm64

- name: Build and publish to registry with release tag
if: github.event_name == 'release' && github.event.action == 'published' && github.repository == 'recast-hep/recast-atlas'
Expand All @@ -114,3 +115,4 @@ jobs:
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
org.opencontainers.image.revision=${{ github.sha }}
push: true
platforms: linux/amd64,linux/arm64

0 comments on commit fe74205

Please sign in to comment.