chore: adjust Docker build workflow to conditionally push images

This commit is contained in:
Josh Jacobs
2025-10-26 16:24:01 +00:00
parent e0c38935ba
commit ab60a1c20e

View File

@@ -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