ci: simplify push condition (always push on main branch)
Build and Push Docker Image / build (push) Successful in 21s

This commit is contained in:
Daniel Samson committed 2026-10-19 18:18:01 +01:00
1 parent 941e77bfa0
commit e45fb9121a
1 file changed
+1 -4
+1 -4
View File
@@ -4,9 +4,6 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
env:
REGISTRY: gitea.samson.media
@@ -50,7 +47,7 @@ jobs:
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:buildcache