Skip to content
This repository was archived by the owner on Nov 25, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
branches:
- master
workflow_dispatch:

# Serialize master publishes, including manually dispatched builds and reruns.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
Build:
runs-on:
Expand All @@ -31,5 +37,11 @@ jobs:

- name: Push to DockerHub
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
shell: bash
run: |
master_head=$(git ls-remote --exit-code origin refs/heads/master | cut -f1)
if [[ "$GITHUB_SHA" != "$master_head" ]]; then
echo "Skipping publish: master is now $master_head, not $GITHUB_SHA."
exit 0
fi
docker push xiangzhedev/upgradeall-server:latest
Loading