summaryrefslogtreecommitdiff
path: root/.github/workflows/build-containers.yml
diff options
context:
space:
mode:
authorWileam Y. Phan <50928756+wyphan@users.noreply.github.com>2022-05-19 15:35:52 -0400
committerGitHub <noreply@github.com>2022-05-19 21:35:52 +0200
commit30f239478285d721b5b296a7715c65c2b8972f37 (patch)
tree3044da551c0c9c1e9d240ded733e741de2b8e6c1 /.github/workflows/build-containers.yml
parent262c3f07bf9ae8c6c0076d4529ae733fe1dbfadb (diff)
downloadspack-30f239478285d721b5b296a7715c65c2b8972f37.tar.gz
spack-30f239478285d721b5b296a7715c65c2b8972f37.tar.bz2
spack-30f239478285d721b5b296a7715c65c2b8972f37.tar.xz
spack-30f239478285d721b5b296a7715c65c2b8972f37.zip
Run scheduled CI workflows only in the main repo (#30729)
Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
Diffstat (limited to '.github/workflows/build-containers.yml')
-rw-r--r--.github/workflows/build-containers.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml
index f836cc5d0f..e5537783cd 100644
--- a/.github/workflows/build-containers.yml
+++ b/.github/workflows/build-containers.yml
@@ -43,6 +43,7 @@ jobs:
[ubuntu-focal, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:20.04'],
[ubuntu-jammy, 'linux/amd64,linux/arm64,linux/ppc64le', 'ubuntu:22.04']]
name: Build ${{ matrix.dockerfile[0] }}
+ if: github.repository == 'spack/spack'
steps:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # @v2
@@ -94,7 +95,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to DockerHub
- if: ${{ github.event_name != 'pull_request' }}
+ if: github.event_name != 'pull_request'
uses: docker/login-action@49ed152c8eca782a232dede0303416e8f356c37b # @v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}