Skip to content

Commit

Permalink
don't override set runner img
Browse files Browse the repository at this point in the history
Signed-off-by: Emily McMullan <[email protected]>
  • Loading branch information
eemcmullan committed Jun 4, 2024
1 parent 6d5fd4c commit 42fcfb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ func (c *Config) trySetDefaultPodmanBin(file string) (found bool, err error) {

func (c *Config) loadRunnerImg() error {
// TODO(maufart): ensure Config struct works/parses it values from ENV and defaults correctly
runnerImg, found := os.LookupEnv("RUNNER_IMG");
if !found {
runnerImg = "quay.io/konveyor/kantra"
// Respect existing RUNNER_IMG setting
if os.Getenv("RUNNER_IMG") != "" {
return nil
}
// if version tag is given in image
img := strings.TrimSuffix(runnerImg, fmt.Sprintf(":%v", Version))
img := strings.TrimSuffix(RunnerImage, fmt.Sprintf(":%v", Version))
updatedImg := fmt.Sprintf("%v:%v", img, Version)
err := os.Setenv("RUNNER_IMG", updatedImg)
if err != nil {
Expand Down

0 comments on commit 42fcfb1

Please sign in to comment.