@@ -87,7 +87,7 @@ def qualified_buildctl(config):
8787 require (executable , 'Preinstalled qualified buildctl required' )
8888 path = Path (executable ).resolve ()
8989 info = path .stat ()
90- expected = config .get ('WEBDOCK_BUILDCTL_SHA256 ' , '' )
90+ expected = config .get ('SPITZLI_BUILDCTL_SHA256 ' , '' )
9191 require (re .fullmatch (r'[a-f0-9]{64}' , expected ) and stat .S_ISREG (info .st_mode )
9292 and info .st_uid in {0 , os .getuid ()} and info .st_mode & 0o022 == 0 ,
9393 'Pinned operator-qualified buildctl binary required' )
@@ -108,7 +108,7 @@ def selected_dockerfile(context, value='Dockerfile'):
108108def require_blacksmith_region (config ):
109109 region = config .get ('BLACKSMITH_REGION' , '' )
110110 require (config .get ('GITHUB_ACTIONS' ) == 'true' and region in {'us-east' , 'us-west' , 'eu-central' , 'eu-west' }
111- and region == config .get ('WEBDOCK_BLACKSMITH_REGION ' ), 'Actual Blacksmith job and matching recorded region required' )
111+ and region == config .get ('SPITZLI_BLACKSMITH_REGION ' ), 'Actual Blacksmith job and matching recorded region required' )
112112
113113
114114def require_fresh_blacksmith_builder (config ):
@@ -148,7 +148,7 @@ def build_image(context, temporary_root, config, token, check=False, bootstrap=F
148148 temporary_root = Path (temporary_root ).resolve ()
149149 require (not temporary_root .is_relative_to (context ), 'Private runner temporary files must remain outside the build context' )
150150 require (not (check and bootstrap ), 'Select one build target' )
151- dockerfile = selected_dockerfile (context , 'deploy/docker/backend.Dockerfile' if bootstrap else config .get ('WEBDOCK_PLUGIN_DOCKERFILE ' , 'Dockerfile' ))
151+ dockerfile = selected_dockerfile (context , 'deploy/docker/backend.Dockerfile' if bootstrap else config .get ('SPITZLI_PLUGIN_DOCKERFILE ' , 'Dockerfile' ))
152152 archive = temporary_root / 'webdock-backend.oci.tar'
153153 if bootstrap :
154154 require (not archive .exists () and not archive .is_symlink (), 'Bootstrap archive must not already exist' )
@@ -160,13 +160,13 @@ def build_image(context, temporary_root, config, token, check=False, bootstrap=F
160160 require (re .fullmatch (r'[a-f0-9]{40}' , revision ), 'Exact source revision required' )
161161 require (re .fullmatch (r'[A-Za-z0-9_-]+(?:\[bot\])?' , actor ), 'GitHub actor required' )
162162 require (isinstance (token , str ) and (token == '' if check or bootstrap else re .fullmatch (r'[A-Za-z0-9_.-]{10,2048}' , token )), 'Publishing token required only for the production image push' )
163- backend = config .get ('WEBDOCK_OCI_BACKEND ' , 'rootless-buildctl' )
163+ backend = config .get ('SPITZLI_OCI_BACKEND ' , 'rootless-buildctl' )
164164 require (backend in {'rootless-buildctl' , 'blacksmith-buildx' }, 'Explicit supported OCI backend required' )
165165 if backend == 'blacksmith-buildx' :
166166 docker , builder , provider_config = qualified_blacksmith_builder (config )
167167 require (not Path (provider_config ).is_relative_to (context ), 'Provider builder state must stay outside the source context' )
168168 else :
169- address = config .get ('WEBDOCK_BUILDKIT_ADDR ' , '' )
169+ address = config .get ('SPITZLI_BUILDKIT_ADDR ' , '' )
170170 validate_socket (address )
171171 buildctl = qualified_buildctl (config )
172172 with tempfile .TemporaryDirectory (prefix = 'plugin-build-' , dir = temporary_root ) as temporary :
0 commit comments