Skip to content

Commit

Permalink
add custom name when creating secrets hash file
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-cup committed Feb 11, 2025
1 parent 6b4513b commit 8c76f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildkit/build_llb/build_graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (g *BuildGraph) convertExecCommandToLLB(node *StepNode, cmd plan.ExecComman
// If there is a secrets hash, add a mount to invalidate the cache if the secrets hash changes
if g.SecretsHash != "" {
opts = append(opts, llb.AddMount("/cache-invalidate",
llb.Scratch().File(llb.Mkfile("secrets-hash", 0644, []byte(g.SecretsHash)))))
llb.Scratch().File(llb.Mkfile("secrets-hash", 0644, []byte(g.SecretsHash)), llb.WithCustomName("invalidate cache on secrets hash change"))))
}
}

Expand Down

0 comments on commit 8c76f13

Please sign in to comment.