Skip to content

Commit 90615e9

Browse files
authored
Perform Image building in parallel in CI (#686)
1 parent 8ce9965 commit 90615e9

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

.github/workflows/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ jobs:
3232
run: make test
3333
e2e:
3434
name: E2E
35-
runs-on: ubuntu-latest
35+
runs-on:
36+
labels: ubuntu-latest-16-cores
3637
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
3738
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
3839
strategy:

.github/workflows/mpi-operator-docker-image-publish.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ env:
1515

1616
jobs:
1717
build-push-docker-image:
18-
runs-on: ubuntu-latest
18+
runs-on:
19+
labels: ubuntu-latest-16-cores
1920
steps:
2021
- name: Checkout
2122
uses: actions/checkout@v3

Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,22 @@ images:
105105
.PHONY: test_images
106106
test_images:
107107
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg port=${BASE_IMAGE_SSH_PORT} -t ${REGISTRY}/base:${RELEASE_VERSION} build/base
108+
$(MAKE) -j3 test_images_openmpi test_images_intel test_images_mpich
109+
110+
.PHONY: test_images_openmpi
111+
test_images_openmpi:
108112
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/openmpi:${RELEASE_VERSION} build/base -f build/base/openmpi.Dockerfile
109113
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) -t ${REGISTRY}/openmpi-builder:${RELEASE_VERSION} build/base -f build/base/openmpi-builder.Dockerfile
110114
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-openmpi examples/v2beta1/pi
115+
116+
.PTHONY: test_images_intel
117+
test_images_intel:
111118
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(INTEL_PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/intel:${RELEASE_VERSION} build/base -f build/base/intel.Dockerfile
112119
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(INTEL_PLATFORMS) -t ${REGISTRY}/intel-builder:${RELEASE_VERSION} build/base -f build/base/intel-builder.Dockerfile
113120
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(INTEL_PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-intel examples/v2beta1/pi -f examples/v2beta1/pi/intel.Dockerfile
121+
122+
.PHOTNY: test_images_mpich
123+
test_images_mpich:
114124
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(MPICH_PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/mpich:${RELEASE_VERSION} build/base -f build/base/mpich.Dockerfile
115125
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(MPICH_PLATFORMS) -t ${REGISTRY}/mpich-builder:${RELEASE_VERSION} build/base -f build/base/mpich-builder.Dockerfile
116126
${IMG_BUILDER} build $(BUILD_ARGS) --platform $(MPICH_PLATFORMS) --build-arg BASE_LABEL=${RELEASE_VERSION} -t ${REGISTRY}/mpi-pi:${RELEASE_VERSION}-mpich examples/v2beta1/pi -f examples/v2beta1/pi/mpich.Dockerfile

0 commit comments

Comments
 (0)