Skip to content

Commit

Permalink
Use correct version for RUNNER_IMG (#214)
Browse files Browse the repository at this point in the history
use correct version for runner img

Signed-off-by: Emily McMullan <[email protected]>
  • Loading branch information
eemcmullan authored Apr 30, 2024
1 parent 8371891 commit b497577
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cmd/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"errors"
"fmt"
"os"
"os/exec"

Expand Down Expand Up @@ -37,6 +38,9 @@ func (c *Config) Load() error {
if err := c.loadDefaultPodmanBin(); err != nil {
return err
}
if err := c.loadRunnerImg(); err != nil {
return err
}

err := env.Set(c)
if err != nil {
Expand Down Expand Up @@ -76,3 +80,14 @@ func (c *Config) trySetDefaultPodmanBin(file string) (found bool, err error) {
}
return false, nil
}

func (c *Config) loadRunnerImg() error {
if Version != "v99.0.0" {
updatedImg := fmt.Sprintf("quay.io/konveyor/kantra:%v", Version)
err := os.Setenv("RUNNER_IMG", updatedImg)
if err != nil {
return err
}
}
return nil
}

0 comments on commit b497577

Please sign in to comment.