summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAlec Scott <alec@bcs.sh>2021-08-07 11:02:02 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2021-08-08 07:20:25 -0700
commit0dd6b1e1341d1b3ac65027e4f7d9e007b0c8f71b (patch)
tree4dfcca76f120f33b234dcce2e483e827a57fe8ef /.github/workflows
parent1c90b259335c64d9381bc8b42ad35babd4e1318c (diff)
downloadspack-0dd6b1e1341d1b3ac65027e4f7d9e007b0c8f71b.tar.gz
spack-0dd6b1e1341d1b3ac65027e4f7d9e007b0c8f71b.tar.bz2
spack-0dd6b1e1341d1b3ac65027e4f7d9e007b0c8f71b.tar.xz
spack-0dd6b1e1341d1b3ac65027e4f7d9e007b0c8f71b.zip
Clean Up PR from Container Builder
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build-containers.yml11
1 files changed, 2 insertions, 9 deletions
diff --git a/.github/workflows/build-containers.yml b/.github/workflows/build-containers.yml
index e9006b32e8..d2dd2d825e 100644
--- a/.github/workflows/build-containers.yml
+++ b/.github/workflows/build-containers.yml
@@ -49,8 +49,6 @@ jobs:
fi
- name: Log in to GitHub Container Registry
- # Don't log into registry on pull request.
- if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
@@ -63,17 +61,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- - name: Build ${{ matrix.dockerfile[1] }}
+ - name: Build & Deploy ${{ matrix.dockerfile[1] }}
uses: docker/build-push-action@v2
with:
file: share/spack/docker/${{matrix.dockerfile[1]}}
platforms: ${{ matrix.dockerfile[2] }}
- push: false
+ push: true
tags: |
${{ env.container }}
${{ env.versioned }}
-
- - name: Deploy ${{ matrix.dockerfile[1] }}
- # And don't push the container on a pull request.
- if: github.event_name != 'pull_request'
- run: docker push ghcr.io/spack/${{ matrix.dockerfile[0]}} --all-tags