Clean Up PR from Container Builder
This commit is contained in:
parent
1c90b25933
commit
0dd6b1e134
1 changed files with 2 additions and 9 deletions
11
.github/workflows/build-containers.yml
vendored
11
.github/workflows/build-containers.yml
vendored
|
@ -49,8 +49,6 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Log in to GitHub Container Registry
|
- 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
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
@ -63,17 +61,12 @@ jobs:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Build ${{ matrix.dockerfile[1] }}
|
- name: Build & Deploy ${{ matrix.dockerfile[1] }}
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
file: share/spack/docker/${{matrix.dockerfile[1]}}
|
file: share/spack/docker/${{matrix.dockerfile[1]}}
|
||||||
platforms: ${{ matrix.dockerfile[2] }}
|
platforms: ${{ matrix.dockerfile[2] }}
|
||||||
push: false
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.container }}
|
${{ env.container }}
|
||||||
${{ env.versioned }}
|
${{ 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
|
|
||||||
|
|
Loading…
Reference in a new issue