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

Commit

Permalink
Merge pull request #465 from nadundesilva/login
Browse files Browse the repository at this point in the history
Fix bug in cellery run where the registry is not honored
  • Loading branch information
sinthuja committed Jul 1, 2019
2 parents a395c9e + 54d7c4f commit b89a97d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/cli/pkg/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,6 @@ func ExtractImage(cellImage *util.CellImage, spinner *util.Spinner) (string, err
repoLocation := filepath.Join(util.UserHomeDir(), constants.CELLERY_HOME, "repo", cellImage.Organization,
cellImage.ImageName, cellImage.ImageVersion)
zipLocation := filepath.Join(repoLocation, cellImage.ImageName+constants.CELL_IMAGE_EXT)
cellImageTag := cellImage.Organization + "/" + cellImage.ImageName + ":" + cellImage.ImageVersion

// Pull image if not exist
imageExists, err := util.FileExists(zipLocation)
Expand All @@ -1031,6 +1030,8 @@ func ExtractImage(cellImage *util.CellImage, spinner *util.Spinner) (string, err
if spinner != nil {
spinner.Pause()
}
cellImageTag := cellImage.Registry + "/" + cellImage.Organization + "/" + cellImage.ImageName +
":" + cellImage.ImageVersion
RunPull(cellImageTag, true, "", "")
fmt.Println()
if spinner != nil {
Expand Down

0 comments on commit b89a97d

Please sign in to comment.