ci(docker-publish): 👷 Update workflow to trigger certain steps only on push events

- Modify conditions to ensure `docker/login-action` runs only on push
- Add condition to gate `docker/publish-action` execution on push event
This commit is contained in:
Alexander Schaber
2025-08-18 18:18:10 +02:00
parent 8221a1ca48
commit d7ce5aeb42
+2 -1
View File
@@ -27,7 +27,7 @@ jobs:
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: ghcr.io
@@ -59,3 +59,4 @@ jobs:
subject-name: ghcr.io/${{ github.repository }}
subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true
if: github.event_name == 'push'