Get image id.
This commit is contained in:
@@ -163,10 +163,9 @@ spec:
|
||||
image: python:3.13-alpine3.20
|
||||
workingDir: "$(workspaces.source.path)"
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
cat /home/build/.metadata/image_id
|
||||
echo "---"
|
||||
#!/usr/bin/env python
|
||||
with open("/home/build/.metadata/image_id", "r") as f:
|
||||
print("image_id:", f.read())
|
||||
import json
|
||||
with open("/home/build/.metadata/build.json", "r") as f:
|
||||
meta_body = f.read()
|
||||
|
||||
Reference in New Issue
Block a user