mirror of
https://github.com/dangeroustech/ZeroTierBridge.git
synced 2025-12-06 09:06:58 +00:00
chore: adjust Docker build workflow to conditionally push images
This commit is contained in:
3
.github/workflows/docker-build.yml
vendored
3
.github/workflows/docker-build.yml
vendored
@@ -43,6 +43,7 @@ jobs:
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
id: login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -57,7 +58,7 @@ jobs:
|
||||
context: .
|
||||
build-args: |
|
||||
VERSION=1.12.2
|
||||
push: true
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: ${{ env.REGISTRY_IMAGE }}:latest
|
||||
cache-from: type=gha
|
||||
|
||||
Reference in New Issue
Block a user