Skip to content

Commit

Permalink
buildmaster/backend: allow blocking buildmaster activity
Browse files Browse the repository at this point in the history
  • Loading branch information
kallisti5 committed Aug 8, 2024
1 parent 49f29cb commit a6c7b45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buildmaster/backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# CAREFUL HERE! The build context is the top level directory of git!
#
REPO=ghcr.io/haikuports
VERSION=1.2.8-4
VERSION=1.2.8-5
default:
docker build --no-cache --tag ${REPO}/haikuporter/buildmaster:${VERSION} -f Dockerfile ../..
push:
Expand Down
7 changes: 6 additions & 1 deletion buildmaster/backend/assets/loop
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ do
HEAD_REVISION=$(git rev-parse HEAD)
git pull --ff-only

if [ -f buildmaster/do-everything ]; then
if [ -f buildmaster/stop ]; then
echo "$(date) buildmaster activity is blocked due to stop file"
echo ""
sleep $ERROR_WAIT
continue
elif [ -f buildmaster/do-everything ]; then
echo "$(date) buildmaster everything requested, starting"
echo ""

Expand Down

0 comments on commit a6c7b45

Please sign in to comment.