File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,12 @@ def create_header(
30
30
commit_hash_tag = GitHelper .commit_hash_tag ()
31
31
commit_message = GitHelper .commit_message ()
32
32
33
+ # Unfortunately, docker images doesn't work when specifying `docker.io` as registry
34
+ fixed_registry = registry + "/" if registry != "docker.io" else ""
35
+
33
36
image_size = docker [
34
37
"images" ,
35
- f"{ registry } / { owner } /{ short_image_name } :latest" ,
38
+ f"{ fixed_registry } { owner } /{ short_image_name } :latest" ,
36
39
"--format" ,
37
40
"{{.Size}}" ,
38
41
]().rstrip ()
@@ -44,7 +47,7 @@ def create_header(
44
47
"## Build Info" ,
45
48
"" ,
46
49
f"* Build datetime: { build_timestamp } " ,
47
- f"* Docker image: { registry } /{ owner } /{ short_image_name } :{ commit_hash_tag } " ,
50
+ f"* Docker image: ` { registry } /{ owner } /{ short_image_name } :{ commit_hash_tag } ` " ,
48
51
f"* Docker image size: { image_size } " ,
49
52
f"* Git commit SHA: [{ commit_hash } ](https://github.com/jupyter/docker-stacks/commit/{ commit_hash } )" ,
50
53
"* Git commit message:" ,
You can’t perform that action at this time.
0 commit comments