Get image id.

This commit is contained in:
Tom Alexander
2026-09-07 18:15:43 -04:00
parent 64bee2bb1b
commit 7152bd61fb

View File

@@ -163,10 +163,9 @@ spec:
image: python:3.13-alpine3.20 image: python:3.13-alpine3.20
workingDir: "$(workspaces.source.path)" workingDir: "$(workspaces.source.path)"
script: | script: |
#!/usr/bin/env bash
cat /home/build/.metadata/image_id
echo "---"
#!/usr/bin/env python #!/usr/bin/env python
with open("/home/build/.metadata/image_id", "r") as f:
print("image_id:", f.read())
import json import json
with open("/home/build/.metadata/build.json", "r") as f: with open("/home/build/.metadata/build.json", "r") as f:
meta_body = f.read() meta_body = f.read()