test(ci): verify signed CUDA release image offline
This commit is contained in:
1 parent
5c52c0e8f9
commit
06aa5ea31a
2 files changed
+7
-1
No files matched your search
@@ -31,6 +31,10 @@ def run(command, *, cwd, env, label):
|
||||
result = subprocess.run(command, cwd=cwd, env=env, capture_output=True, text=True)
|
||||
if result.returncode:
|
||||
output = (result.stdout + result.stderr).replace(DOCKER_TOKEN, '[redacted]').replace(RELEASE_TOKEN, '[redacted]')
|
||||
if label == 'publish.sh':
|
||||
provenance_path = cwd / 'artifacts/packages/provenance.json'
|
||||
if provenance_path.exists():
|
||||
output += '\nOffline provenance: ' + json.dumps(json.loads(provenance_path.read_text()), sort_keys=True)
|
||||
raise RuntimeError(f'{label} failed ({result.returncode}):\n{output[-12000:]}')
|
||||
return result.stdout
|
||||
|
||||
|
||||
@@ -44,7 +44,9 @@ PY
|
||||
(cd artifacts/packages && sha256sum --check SHA256SUMS)
|
||||
printf '%s' "${tag#v}" > artifacts/version
|
||||
bash scripts/ci/images.sh
|
||||
bash scripts/ci/security.sh agent-gpu
|
||||
for image_component in server agent agent-gpu; do
|
||||
bash scripts/ci/security.sh "$image_component"
|
||||
done
|
||||
# No mutation is attempted until all credentials, provenance and local builds pass.
|
||||
export DOCKER_CONFIG
|
||||
DOCKER_CONFIG=$(mktemp -d)
|
||||
|
||||
Reference in new issue
Block a user