From ab679ca517f436301ada576fa8b36e0e9df1b4af Mon Sep 17 00:00:00 2001 From: Giorgis Georgakoudis Date: Tue, 1 Oct 2024 13:27:27 -0700 Subject: [PATCH] Update build containers workflow for parallel matrix building --- .github/workflows/create-containers.yml | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/workflows/create-containers.yml b/.github/workflows/create-containers.yml index bac1b4f..ae5a416 100644 --- a/.github/workflows/create-containers.yml +++ b/.github/workflows/create-containers.yml @@ -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 @@ -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