Fix building container images (#28063)
* Fix building container images Patchelf is bootstrapped from sources, so we cannot disable that mechanism until a finer selection is possible in the configuration. * Build on changes to the Dockerfile * Don't login to Dockerhub on PRs
This commit is contained in:
parent
18615b1485
commit
661fd7bb67
2
.github/workflows/build-containers.yml
vendored
2
.github/workflows/build-containers.yml
vendored
@ -12,6 +12,7 @@ on:
|
|||||||
- develop
|
- develop
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/build-containers.yml'
|
- '.github/workflows/build-containers.yml'
|
||||||
|
- 'share/spack/docker/*'
|
||||||
# Let's also build & tag Spack containers on releases.
|
# Let's also build & tag Spack containers on releases.
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
@ -73,6 +74,7 @@ jobs:
|
|||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Log in to DockerHub
|
- name: Log in to DockerHub
|
||||||
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # @v1
|
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # @v1
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
@ -63,7 +63,6 @@ WORKDIR /root
|
|||||||
SHELL ["docker-shell"]
|
SHELL ["docker-shell"]
|
||||||
|
|
||||||
# TODO: add a command to Spack that (re)creates the package cache
|
# TODO: add a command to Spack that (re)creates the package cache
|
||||||
RUN spack bootstrap untrust spack-install
|
|
||||||
RUN spack spec hdf5+mpi
|
RUN spack spec hdf5+mpi
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
|
ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
|
||||||
|
@ -67,7 +67,6 @@ WORKDIR /root
|
|||||||
SHELL ["docker-shell"]
|
SHELL ["docker-shell"]
|
||||||
|
|
||||||
# TODO: add a command to Spack that (re)creates the package cache
|
# TODO: add a command to Spack that (re)creates the package cache
|
||||||
RUN spack bootstrap untrust spack-install
|
|
||||||
RUN spack spec hdf5+mpi
|
RUN spack spec hdf5+mpi
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
|
ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
|
||||||
|
@ -67,7 +67,6 @@ WORKDIR /root
|
|||||||
SHELL ["docker-shell"]
|
SHELL ["docker-shell"]
|
||||||
|
|
||||||
# TODO: add a command to Spack that (re)creates the package cache
|
# TODO: add a command to Spack that (re)creates the package cache
|
||||||
RUN spack bootstrap untrust spack-install
|
|
||||||
RUN spack spec hdf5+mpi
|
RUN spack spec hdf5+mpi
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
|
ENTRYPOINT ["/bin/bash", "/opt/spack/share/spack/docker/entrypoint.bash"]
|
||||||
|
Loading…
Reference in New Issue
Block a user