mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-18 15:27:16 +02:00
Use canonical platform values. Fix 1995. (#2025)
* Use canonical image architectures. Closes #1995. Prior to this change, Kaniko was not using the platform's canonical value. * Update platform unit test.
This commit is contained in:
@@ -372,7 +372,7 @@ COPY --from=second /bar /bat
|
||||
ioutil.WriteFile(f.Name(), []byte(tt.args.dockerfile), 0755)
|
||||
opts := &config.KanikoOptions{
|
||||
DockerfilePath: f.Name(),
|
||||
CustomPlatform: platforms.DefaultString(),
|
||||
CustomPlatform: platforms.Format(platforms.Normalize(platforms.DefaultSpec())),
|
||||
}
|
||||
testStages, metaArgs, err := dockerfile.ParseStages(opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user