Skip to content

Commit

Permalink
Merge pull request #585 from spack/build-arm-images
Browse files Browse the repository at this point in the history
Build ARM variants of docker images
  • Loading branch information
scottwittenburg authored Sep 13, 2023
2 parents 62780ef + c02d9fd commit ad7abf3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/custom_docker_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,27 @@ jobs:
image-tags: ghcr.io/spack/upload-build-timings:0.0.1
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3

- name: Set up QEMU
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0

- name: Log in to the Container registry
uses: docker/login-action@d398f07826957cd0a18ea1b059cf1207835e60bc
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push ${{ matrix.docker-image }}
id: docker-build-push
uses: docker/build-push-action@67af6dc1d38f334ae6935c94587e8a5b45a81a0e
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
with:
context: ${{ matrix.docker-image }}
file: ${{ matrix.docker-image }}/Dockerfile
push: true
tags: ${{ matrix.image-tags }}
platforms: linux/amd64,linux/arm64

- name: Image digest
run: echo ${{ steps.docker-build-push.outputs.digest }}

0 comments on commit ad7abf3

Please sign in to comment.