Merge pull request #17506 from rhatdan/build

Allow specification of podman --remote build -f -
This commit is contained in:
OpenShift Merge Robot authored and GitHub committed 2023-02-15 09:13:05 -05:00
commit 83757ccb55
2 files changed
+11 -1

No files matched your search

+5 -1
View File
@@ -218,7 +218,11 @@ func build(cmd *cobra.Command, args []string) error {
var containerFiles []string
for _, f := range buildOpts.File {
if f == "-" {
containerFiles = append(containerFiles, "/dev/stdin")
if len(args) == 0 {
args = append(args, "-")
} else {
containerFiles = append(containerFiles, "/dev/stdin")
}
} else {
containerFiles = append(containerFiles, f)
}