Skip to content

Commit

Permalink
use correct version for 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 Apr 30, 2024
1 parent 7e4e957 commit 67c5d3c
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 @@ -39,10 +40,24 @@ func (c *Config) Load() error {
os.Setenv("PODMAN_BIN", podmanPath)
}
}
if err := c.loadRunnerImg(); err != nil {
return err
}

err := env.Set(c)
if err != nil {
return err
}
return 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 67c5d3c

Please sign in to comment.