mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-24 16:12:59 +08:00
Disable github workflow steps for Pull Requests
This commit is contained in:
parent
19d4ca3246
commit
d92e8a9814
1 changed files with 3 additions and 2 deletions
5
.github/workflows/publish-docker.yml
vendored
5
.github/workflows/publish-docker.yml
vendored
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue