This repository has been archived by the owner on Sep 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,14 @@ jobs: | |
- name: build bionic | ||
run: | | ||
docker build -t pdidevel/bionic -t pdidevel/bionic:${image_version} bionic | ||
- name: publish | ||
env: | ||
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
run: | | ||
set -ex | ||
docker login -u jbigot -p "${DOCKER_TOKEN}" | ||
docker push pdidevel/bionic | ||
docker push pdidevel/bionic:${image_version} | ||
build_bionic_gcc_7_4_0: | ||
runs-on: ubuntu-latest | ||
needs: build_bionic | ||
|
@@ -31,7 +39,20 @@ jobs: | |
run: . .github/detect_version.sh | ||
- name: build bionic/[email protected] | ||
run: | | ||
docker build --build-arg "BASE_IMAGE=pdidevel/bionic:${image_version}" --build-arg "[email protected]" -t pdidevel/bionic/gcc-7.4.0 -t pdidevel/gcc-7.4.0:${image_version} gcc | ||
docker build \ | ||
--build-arg "[email protected]" \ | ||
--build-arg "BASE_IMAGE=pdidevel/bionic:${image_version}" \ | ||
-t pdidevel/bionic/gcc-7.4.0 \ | ||
-t pdidevel/bionic/gcc-7.4.0:${image_version} \ | ||
gcc | ||
- name: publish | ||
env: | ||
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
run: | | ||
set -ex | ||
docker login -u jbigot -p "${DOCKER_TOKEN}" | ||
docker push pdidevel/bionic/gcc-7.4.0 | ||
docker push pdidevel/bionic/gcc-7.4.0:${image_version} | ||
build_bionic_gcc_latest: | ||
runs-on: ubuntu-latest | ||
needs: build_bionic | ||
|
@@ -41,4 +62,39 @@ jobs: | |
run: . .github/detect_version.sh | ||
- name: build bionic/gcc@latest | ||
run: | | ||
docker build --build-arg "BASE_IMAGE=pdidevel/bionic:${image_version}" -t pdidevel/bionic/gcc-latest -t pdidevel/gcc-latest:${image_version} gcc | ||
docker build \ | ||
--build-arg "BASE_IMAGE=pdidevel/bionic:${image_version}" \ | ||
-t pdidevel/bionic/gcc-latest \ | ||
-t pdidevel/bionic/gcc-latest:${image_version} \ | ||
gcc | ||
- name: publish | ||
env: | ||
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
run: | | ||
set -ex | ||
docker login -u jbigot -p "${DOCKER_TOKEN}" | ||
docker push pdidevel/bionic/gcc-latest | ||
docker push pdidevel/bionic/gcc-latest:${image_version} | ||
build_bionic_gcc_latest_openmpi_latest: | ||
runs-on: ubuntu-latest | ||
needs: build_bionic | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: detect current version | ||
run: . .github/detect_version.sh | ||
- name: build bionic/gcc@latest | ||
run: | | ||
docker build \ | ||
--build-arg "MPI=openmpi" \ | ||
--build-arg "BASE_IMAGE=pdidevel/bionic/gcc-latest:${image_version}" \ | ||
-t pdidevel/bionic/gcc-latest/openmpi-latest \ | ||
-t pdidevel/bionic/gcc-latest/openmpi-latest:${image_version} \ | ||
mpi | ||
- name: publish | ||
env: | ||
DOCKER_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | ||
run: | | ||
set -ex | ||
docker login -u jbigot -p "${DOCKER_TOKEN}" | ||
docker push pdidevel/bionic/gcc-latest/openmpi-latest | ||
docker push pdidevel/bionic/gcc-latest/openmpi-latest:${image_version} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
ARG BASE_IMAGE | ||
|
||
FROM ${BASE_IMAGE} | ||
|
||
ARG MPI | ||
ARG SPACK_INSTALL_ARGS | ||
|
||
ENV SPACK_INSTALL_ARGS=${SPACK_INSTALL_ARGS:-"--show-log-on-error --fail-fast"} | ||
ENV MPI=${MPI} | ||
|
||
SHELL ["/usr/local/bin/spack-env", "/bin/bash", "-c"] | ||
|
||
RUN spack install ${MPI} |