This commit is contained in:
@@ -2,6 +2,7 @@ package config
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"kforge/pkg/interpolate"
|
||||
@@ -306,6 +307,11 @@ func ResolveEnvironment(cfg *KforgeConfig, envKey string) (ResolvedEnvironment,
|
||||
if imageTag == "" {
|
||||
imageTag = DefaultImageTag
|
||||
}
|
||||
// Allow the action entrypoint (or CI) to override the image tag at generate
|
||||
// time without modifying kforge.yml (e.g. KFORGE_IMAGE_TAG=abc1234).
|
||||
if override := os.Getenv("KFORGE_IMAGE_TAG"); override != "" {
|
||||
imageTag = override
|
||||
}
|
||||
image := registry.URL + "/" + registry.Repository + ":" + imageTag
|
||||
|
||||
replicas := *cfg.Defaults.Replicas
|
||||
|
||||
Reference in New Issue
Block a user