fix(ci): include acceptance scripts in backend checks
Supply repository scripts as a named build context for the backend check stage so containerized regression tests can import the same acceptance helpers as local tests. Keep operator scripts out of the runtime image.
This commit is contained in:
1 parent
4929a32a0a
commit
201f22596f
2 files changed
+3
-1
No files matched your search
+2
-1
@@ -216,7 +216,8 @@ def check():
|
||||
save(ROOT / 'build.json', build)
|
||||
for part in IMAGES:
|
||||
print('Checking ' + part, flush=True)
|
||||
run('docker', 'build', '--provenance=false', '--platform', 'linux/amd64', '--target', 'check',
|
||||
contexts = ['--build-context', f'project-scripts={ROOT / "scripts"}'] if part == 'backend' else []
|
||||
run('docker', 'build', *contexts, '--provenance=false', '--platform', 'linux/amd64', '--target', 'check',
|
||||
'-f', ROOT / f'deploy/Dockerfile.{part}', ROOT / part)
|
||||
reused = existing_image(part, build)
|
||||
local = reused or 'alphapulse-ci:' + label + '-' + part
|
||||
|
||||
Reference in new issue
Block a user