summaryrefslogtreecommitdiff
path: root/.github/workflows/build-containers.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-containers.yml')
-rw-r--r--.github/workflows/build-containers.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml
index a55e0daa77..1e996111b8 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]
@@ -66,14 +67,15 @@ jobs:
uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25 # @v1
- name: Log in to GitHub Container Registry
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # @v1
+ uses: docker/login-action@42d299face0c5c43a0487c477f595ac9cf22f1a7 # @v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to DockerHub
- uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9 # @v1
+ if: ${{ github.event_name != 'pull_request' }}
+ uses: docker/login-action@42d299face0c5c43a0487c477f595ac9cf22f1a7 # @v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}