1
0
mirror of https://github.com/siderolabs/kres.git synced 2026-02-05 09:45:35 +01:00

fix: docker annoying warnings

By setting a default as `scratch` we silence the docker annoying warnings, this also ensures that an override is set from makefile.

Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
Noel Georgi
2025-11-05 19:08:18 +05:30
parent cd5a93870c
commit 4ba9b0cf54
2 changed files with 5 additions and 4 deletions

View File

@@ -2,9 +2,9 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2025-10-15T08:19:59Z by kres 063080a9-dirty.
# Generated on 2025-11-05T13:37:35Z by kres cd5a938-dirty.
ARG TOOLCHAIN
ARG TOOLCHAIN=scratch
FROM ghcr.io/siderolabs/ca-certificates:v1.11.0 AS image-ca-certificates

View File

@@ -5,6 +5,7 @@
package golang
import (
"fmt"
"path/filepath"
"strings"
@@ -191,10 +192,10 @@ func (toolchain *Toolchain) CompileGitHubWorkflow(output *ghworkflow.Output) err
// CompileDockerfile implements dockerfile.Compiler.
func (toolchain *Toolchain) CompileDockerfile(output *dockerfile.Output) error {
output.Arg(step.Arg("TOOLCHAIN"))
output.Arg(step.Arg("TOOLCHAIN=scratch"))
for _, arg := range toolchain.Docker.ExtraArgs {
output.Arg(step.Arg(arg))
output.Arg(step.Arg(fmt.Sprintf("%s=scratch", arg)))
}
toolchainStage := output.Stage("toolchain").