Seems like we need to find a different workflow for container
pre-testing.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
- name: Docker meta
id: meta
+ if: github.event_name != 'pull_request'
uses: docker/metadata-action@v4
with:
images: name=ghcr.io/${{ github.repository }}/build${{ matrix.container_flavor }}-v${{ env.BUILDBOT_VERSION }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
+ if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
- name: Build container again and push it
uses: docker/build-push-action@v4
+ if: github.event_name != 'pull_request'
with:
push: true
tags: ${{ steps.meta.outputs.tags }}