1
0
Fork 0
mirror of https://github.com/lineageos4microg/docker-lineage-cicd synced 2024-05-19 03:26:08 +02:00

Merge pull request #192 from martin-v/patch-1

PR `push` should not trigger a docker push
This commit is contained in:
Philip Nagler-Frank 2021-06-23 20:41:29 +02:00 committed by GitHub
commit ade044d8f3
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ jobs:
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/pull')
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
@ -48,6 +48,6 @@ jobs:
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.event_name != 'pull_request' && !startsWith(github.ref, 'refs/pull') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}