Skip to content

Commit

Permalink
Allows to use {container_name} in image tag (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekini authored Jul 24, 2023
1 parent 1834d15 commit c00f6f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ func modifyContainerDefinitionImages(imageTag string, imageTags []string, workDi
}

if newTag != "" {
// replace some [arams
newTag = strings.Replace(newTag, "{container_name}", aws.StringValue(containerDefinition.Name), -1)
image := strings.Join([]string{
imageWithTag[0],
newTag,
Expand Down

0 comments on commit c00f6f7

Please sign in to comment.