summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-02-28 20:27:28 +0100
committerEgor Tensin <egor@tensin.name>2026-02-28 20:27:28 +0100
commitb9560f624c42d77cf282c6fd3a16a8728c0401ec (patch)
tree3312bb6d02941fcfe4d5d5047a5a4cfd2c7164f0
parentworkflows/ci: don't run double for Dependabot PRs (diff)
downloadmath-server-b9560f624c42d77cf282c6fd3a16a8728c0401ec.tar.gz
math-server-b9560f624c42d77cf282c6fd3a16a8728c0401ec.zip
workflows/ci: only push to Docker Hub on successful pushes to master
-rw-r--r--.github/workflows/ci.yml2
1 files changed, 1 insertions, 1 deletions
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'