Skip to content

Commit 22fb79c

Browse files
committed
Delete latest tag in clean command
1 parent 6feec84 commit 22fb79c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

buildtree/buildtree.go

+7
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ func (t *BuildTree) Clean() {
276276
if err != nil {
277277
utils.Error(err)
278278
}
279+
if node.pushLatest {
280+
utils.Info("====> Removing docker image %s:%s", node.name, "latest")
281+
err = utils.DockerTryRMI(node.name, "latest")
282+
if err != nil {
283+
utils.Error(err)
284+
}
285+
}
279286
}
280287
}
281288
}

utils/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
// Version returns doriath version
1515
func Version() string {
16-
return "1.4.5"
16+
return "1.4.6"
1717
}
1818

1919
// ResolveDir appends a path to a rootDir

0 commit comments

Comments
 (0)