diff options
| author | Egor Tensin <egor@tensin.name> | 2026-02-28 20:27:28 +0100 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-02-28 20:27:28 +0100 |
| commit | b9560f624c42d77cf282c6fd3a16a8728c0401ec (patch) | |
| tree | 3312bb6d02941fcfe4d5d5047a5a4cfd2c7164f0 /.github/workflows | |
| parent | workflows/ci: don't run double for Dependabot PRs (diff) | |
| download | math-server-b9560f624c42d77cf282c6fd3a16a8728c0401ec.tar.gz math-server-b9560f624c42d77cf282c6fd3a16a8728c0401ec.zip | |
workflows/ci: only push to Docker Hub on successful pushes to master
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 2 |
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' |
