Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
0a3a8fe0
Commit
0a3a8fe0
authored
Dec 27, 2025
by
BO ZHANG
🏀
Browse files
get DOCKER_IMAGE env var
parent
e2f03251
Pipeline
#11641
passed with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
csst_common/io.py
View file @
0a3a8fe0
...
...
@@ -99,7 +99,7 @@ def generate_meta(**kwargs) -> dict:
else
:
raise
KeyError
(
f
"未知的meta参数:
{
k
}
"
)
# automatically set docker_image, build, and created_date
meta
[
"docker_image"
]
=
os
.
getenv
(
"
PIPELINE_ID
"
,
default
=
None
)
meta
[
"docker_image"
]
=
os
.
getenv
(
"
DOCKER_IMAGE
"
,
default
=
None
)
meta
[
"build"
]
=
os
.
getenv
(
"BUILD"
,
default
=
None
)
meta
[
"prc_date"
]
=
now
()
meta
[
"data_uuid"
]
=
str
(
uuid
.
uuid4
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment