Skip to content

Commit

Permalink
Add BUILD_NO_AUTO feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Oct 5, 2023
1 parent cba876a commit 72552a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions prep/container/build
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ die()
}


# If we've been told not to do anything, just bail out. This is for
# use in GitHub actions so there's a container with systemd running
# where the build is handled in its steps instead of automatically.

if [ -n "${BUILD_NO_AUTO}" ]
then
echo "NO_AUTO set. Not building anything and not halting system."
exit 0
fi


# Halt the system on exit unless we're interactive, in which case
# we're debugging.

Expand Down
2 changes: 1 addition & 1 deletion prep/container/build.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=multi-user.target

[Service]
Type=exec
PassEnvironment=BUILD_NO_HALT
PassEnvironment=BUILD_NO_AUTO BUILD_NO_HALT
ExecStart=/usr/bin/build

StandardInput=tty-force
Expand Down

0 comments on commit 72552a7

Please sign in to comment.