ci: only push Docker images on master or release

This commit is contained in:
leejet 2026-01-08 23:03:32 +08:00
parent dfe6d6c664
commit 27b5f17401

View File

@ -207,7 +207,7 @@ jobs:
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
push: true
push: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
file: Dockerfile.${{ matrix.variant }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.BRANCH_NAME }}-${{ matrix.variant }}
labels: ${{ steps.meta.outputs.labels }}