Skip to content

Commit f9d0b60

Browse files
author
mike
committed
修复在多模块java项目中,并行打包镜像时,镜像因为同名称被覆盖的问题
1 parent a842dfe commit f9d0b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/drone-docker/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func run(c *cli.Context) error {
290290
CardPath: c.String("drone-card-path"),
291291
Build: docker.Build{
292292
Remote: c.String("remote.url"),
293-
Name: c.String("commit.sha"),
293+
Name: c.String("commit.sha") + "/" + c.String("repo"),,
294294
Dockerfile: c.String("dockerfile"),
295295
Context: c.String("context"),
296296
Tags: c.StringSlice("tags"),

0 commit comments

Comments
 (0)