Skip to content

Commit c00f6f7

Browse files
authored
Allows to use {container_name} in image tag (#33)
1 parent 1834d15 commit c00f6f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/util.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ func modifyContainerDefinitionImages(imageTag string, imageTags []string, workDi
109109
}
110110

111111
if newTag != "" {
112+
// replace some [arams
113+
newTag = strings.Replace(newTag, "{container_name}", aws.StringValue(containerDefinition.Name), -1)
112114
image := strings.Join([]string{
113115
imageWithTag[0],
114116
newTag,

0 commit comments

Comments
 (0)