Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #703 from ndeloof/APP-271
Browse files Browse the repository at this point in the history
If no image tag set use image content-digest
  • Loading branch information
silvin-lubecki authored Oct 23, 2019
2 parents ae0c5a8 + 65875cf commit 331f68a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions render/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,13 @@ func render(appPath string, composeContent string, imageMap map[string]bundle.Im
if err := processEnabled(rendered); err != nil {
return nil, err
}
// Apply relocation map
for ix, service := range rendered.Services {
if img, ok := imageMap[service.Name]; ok {
service.Image = img.Image
if img.Image == "" {
service.Image = img.Digest
}
rendered.Services[ix] = service
}
}
Expand Down

0 comments on commit 331f68a

Please sign in to comment.