You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: cmd/executor/cmd/root.go
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,22 +31,22 @@ import (
31
31
32
32
var (
33
33
dockerfilePathstring
34
-
destinationstring
34
+
destinationsmultiArg
35
35
srcContextstring
36
36
snapshotModestring
37
37
bucketstring
38
38
dockerInsecureSkipTLSVerifybool
39
39
logLevelstring
40
40
forcebool
41
-
buildArgsbuildArg
41
+
buildArgsmultiArg
42
42
tarPathstring
43
43
)
44
44
45
45
funcinit() {
46
46
RootCmd.PersistentFlags().StringVarP(&dockerfilePath, "dockerfile", "f", "Dockerfile", "Path to the dockerfile to be built.")
47
47
RootCmd.PersistentFlags().StringVarP(&srcContext, "context", "c", "/workspace/", "Path to the dockerfile build context.")
48
48
RootCmd.PersistentFlags().StringVarP(&bucket, "bucket", "b", "", "Name of the GCS bucket from which to access build context as tarball.")
49
-
RootCmd.PersistentFlags().StringVarP(&destination, "destination", "d", "", "Registry the final image should be pushed to (ex: gcr.io/test/example:latest)")
49
+
RootCmd.PersistentFlags().VarP(&destinations, "destination", "d", "Registry the final image should be pushed to. Set it repeatedly for multiple destinations.")
50
50
RootCmd.MarkPersistentFlagRequired("destination")
51
51
RootCmd.PersistentFlags().StringVarP(&snapshotMode, "snapshotMode", "", "full", "Set this flag to change the file attributes inspected during snapshotting")
52
52
RootCmd.PersistentFlags().VarP(&buildArgs, "build-arg", "", "This flag allows you to pass in ARG values at build time. Set it repeatedly for multiple values.")
0 commit comments