summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2021-12-17 10:19:21 +0100
committerGitHub <noreply@github.com>2021-12-17 09:19:21 +0000
commit661fd7bb677ee8977be84a2f39e7089c925f2981 (patch)
treef6e5ac2fc11076ed3d5bd448ea7ee69db875c0ec /.github/workflows
parent18615b14852c70d404dfa6be78e6407d1d77e0c0 (diff)
downloadspack-661fd7bb677ee8977be84a2f39e7089c925f2981.tar.gz
spack-661fd7bb677ee8977be84a2f39e7089c925f2981.tar.bz2
spack-661fd7bb677ee8977be84a2f39e7089c925f2981.tar.xz
spack-661fd7bb677ee8977be84a2f39e7089c925f2981.zip
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
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-containers.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml
index a55e0daa77..9f7841e548 100644
--- a/.github/workflows/build-containers.yml
+++ b/.github/workflows/build-containers.yml
@@ -12,6 +12,7 @@ on:
- develop
paths:
- '.github/workflows/build-containers.yml'
+ - 'share/spack/docker/*'
# Let's also build & tag Spack containers on releases.
release:
types: [published]
@@ -73,6 +74,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to DockerHub
+ if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # @v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}