Skip to content

Commit

Permalink
Update build containers workflow for parallel matrix building
Browse files Browse the repository at this point in the history
  • Loading branch information
ggeorgakoudis committed Oct 1, 2024
1 parent a5672ba commit 30495a1
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/create-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
jobs:
deploy-containers:
runs-on: ubuntu-latest
strategy:
matrix:
target: [
{ context: "x86_64-broadwell-gcc11.2.1", tag: "ams-ci-almalinux8" },
{ context: "x86_64-broadwell-cuda11.6.1", tag: "ams-ci-cuda11.6.1" }
]
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down Expand Up @@ -38,16 +44,7 @@ jobs:
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: "{{defaultContext}}:.github/containers/x86_64-broadwell-gcc11.2.1"
context: "{{defaultContext}}:.github/containers/{{ matrix.target.context }}"
push: true
provenance: false
tags: ghcr.io/llnl/ams-ci-almalinux8:latest

- name: Build and push cuda container
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: "{{defaultContext}}:.github/containers/x86_64-broadwell-cuda11.6.1"
push: true
provenance: false
tags: ghcr.io/llnl/ams-ci-cuda11.6.1:latest
tags: ghcr.io/llnl/{{ matrix.target.tag }}:latest

0 comments on commit 30495a1

Please sign in to comment.