From b9560f624c42d77cf282c6fd3a16a8728c0401ec Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 28 Feb 2026 20:27:28 +0100 Subject: workflows/ci: only push to Docker Hub on successful pushes to master --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad89790..fd6fcc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,5 +108,5 @@ jobs: context: . file: '${{ matrix.project }}/Dockerfile' platforms: '${{ steps.platforms.outputs.platforms }}' - push: ${{ github.ref == 'refs/heads/master' }} + push: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} tags: '${{ secrets.DOCKERHUB_USERNAME }}/math-${{ matrix.project }}:latest' -- cgit v1.3