From 726ef9454b8070bf37a09273a034fd9856c5c123 Mon Sep 17 00:00:00 2001 From: Timofey Kirillov Date: Thu, 23 Mar 2023 12:51:22 +0300 Subject: [PATCH] fix(buildah): usage of docker.exactValues affects digest the same way for buildah and docker-server backends Make dockerInstructions stapel stage digest fully compatible between different container-backends (buildah or docker-server). Signed-off-by: Timofey Kirillov --- pkg/build/stage/stapel_docker_instructions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/stage/stapel_docker_instructions.go b/pkg/build/stage/stapel_docker_instructions.go index 825cf84706..8739de2d46 100644 --- a/pkg/build/stage/stapel_docker_instructions.go +++ b/pkg/build/stage/stapel_docker_instructions.go @@ -35,7 +35,7 @@ type StapelDockerInstructionsStage struct { func (s *StapelDockerInstructionsStage) GetDependencies(ctx context.Context, c Conveyor, cb container_backend.ContainerBackend, prevImage, prevBuiltImage *StageImage, buildContextArchive container_backend.BuildContextArchiver) (string, error) { var args []string - if c.UseLegacyStapelBuilder(cb) && s.instructions.ExactValues { + if s.instructions.ExactValues { args = append(args, "exact-values:::") }