Clean Up PR from Container Builder

This commit is contained in:
Alec Scott 2021-08-07 11:02:02 -07:00 committed by Todd Gamblin
parent 1c90b25933
commit 0dd6b1e134

View file

@ -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