Skip docker login and image push on pull requests

This commit is contained in:
acx10
2025-12-15 19:30:45 -07:00
parent a4a94b731a
commit 7ef92ba459

View File

@@ -106,12 +106,14 @@ jobs:
fetch-depth: 0
- name: Authenticate to Docker Hub
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Authenticate to GitHub Container Registry
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
registry: ghcr.io
@@ -247,7 +249,7 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |