mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 00:06:36 +00:00
Add --backend-args
Allow to add arguments to the backend build arguments Fixes #146
This commit is contained in:
@@ -74,3 +74,13 @@ func runCommand(cmd *exec.Cmd) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func genBuildCommand(opts compiler.CompilerBackendOptions) []string {
|
||||
context := opts.Context
|
||||
|
||||
if context == "" {
|
||||
context = "."
|
||||
}
|
||||
buildarg := append(opts.BackendArgs, "-f", opts.DockerFileName, "-t", opts.ImageName, context)
|
||||
return append([]string{"build"}, buildarg...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user