Skip to content

Commit db845e2

Browse files
committed
updating github hook checks
1 parent 4be2e0c commit db845e2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name="singularity",
88

99
# Version number:
10-
version="0.27",
10+
version="0.28",
1111

1212
# Application author details:
1313
author="Vanessa Sochat",

singularity/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,11 @@ def run_build(build_dir=None,spec_file=None,repo_url=None,token=None,size=None,
253253
:: note: this function is currently configured to work with Google Compute
254254
Engine metadata api, and should (will) be customized if needed to work elsewhere
255255
'''
256+
# If we are building the image, this will not be set
257+
go = get_build_metadata(key='dobuild')
258+
if go == None:
259+
sys.exit(0)
260+
256261
# If no build directory is specified, make a temporary one
257262
if build_dir == None:
258263
build_dir = tempfile.mkdtemp()

0 commit comments

Comments
 (0)