Disable github workflow steps for Pull Requests

This commit is contained in:
Juan Calderon-Perez 2021-10-07 21:59:34 -04:00 committed by GitHub
parent 19d4ca3246
commit d92e8a9814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,8 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
- if: github.event_name != 'pull_request'
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
@ -41,5 +42,5 @@ jobs:
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: gravitl/netmaker:${{ env.TAG }}