CI Docker: don't build full image on pull request

it will fail since the slim tag is not pushed
This commit is contained in:
Nicola Murino 2020-11-24 18:51:10 +01:00
parent 0609188d3f
commit ff73e5f53c
No known key found for this signature in database
GPG key ID: 2F1FB59433D5A8CB

View file

@ -154,6 +154,7 @@ jobs:
org.opencontainers.image.licenses=${{ fromJson(steps.repo.outputs.result).license.spdx_id }}
- name: Build and push full
if: ${{ github.event_name != 'pull_request' }}
uses: docker/build-push-action@v2
with:
builder: ${{ steps.builder-full.outputs.name }}