mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 11:22:35 +02:00
Resolve env replacement for FROM command
This commit is contained in:
@@ -63,7 +63,10 @@ func DoBuild(dockerfilePath, srcContext, snapshotMode string, args []string) (na
|
||||
return nil, nil, err
|
||||
}
|
||||
for index, stage := range stages {
|
||||
baseImage := stage.BaseName
|
||||
baseImage, err := util.ResolveEnvironmentReplacement(stage.BaseName, args, false)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
finalStage := index == len(stages)-1
|
||||
// Unpack file system to root
|
||||
logrus.Infof("Unpacking filesystem of %s...", baseImage)
|
||||
|
||||
Reference in New Issue
Block a user