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
What is the problem being solved?
FixesGoogleContainerTools#5667, adding --push flag to skaffold build. This --push flag overrides any skaffold.yaml "build.local.push: false" configuration for a build allowing easier artifact pushing after local dev without having to modify yaml configuration.
Why is this the best approach?
This approach follows the style and convention for adding a flag that has been used prior for adding a flag used by a single command, similar to GoogleContainerTools#4039. Additionally this approach does not change the skaffold build default push behaviour to be false, instead only taking precendence when the --push flag is set true which is the intended use case.
What other approaches did you consider?
N/A
What side effects will this approach have?
The addition of this single flag should not have side effects on skaffold functionally outside of --push, the default behavior for skaffold build will be preserved w/o --push specified.
What future work remains to be done?
N/A
{Value: &opts.DryRun, Name: "dry-run", DefValue: false, Usage: "Don't build images, just compute the tag for each artifact.", IsEnum: true},
58
+
{Value: &opts.PushImages, Name: "push", DefValue: nil, Usage: "Push the built images to the specified image repository.", IsEnum: true, NoOptDefVal: "true"},
Copy file name to clipboardExpand all lines: docs/content/en/docs/references/cli/_index.md
+2
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,7 @@ Options:
202
202
-o, --output={{json .}}: Used in conjunction with --quiet flag. Format output with go-template. For full struct documentation, see https://godoc.org/github.com/GoogleContainerTools/skaffold/cmd/skaffold/app/flags#BuildOutput
203
203
-p, --profile=[]: Activate profiles by name (prefixed with `-` to disable a profile)
204
204
--profile-auto-activation=true: Set to false to disable profile auto activation
205
+
--push=: Push the built images to the specified image repository.
205
206
-q, --quiet=false: Suppress the build output and print image built on success. See --output to format output.
206
207
--remote-cache-dir='': Specify the location of the git repositories cache (default $HOME/.skaffold/repos)
207
208
--rpc-http-port=50052: tcp port to expose event REST API over HTTP
@@ -239,6 +240,7 @@ Env vars:
239
240
*`SKAFFOLD_OUTPUT` (same as `--output`)
240
241
*`SKAFFOLD_PROFILE` (same as `--profile`)
241
242
*`SKAFFOLD_PROFILE_AUTO_ACTIVATION` (same as `--profile-auto-activation`)
243
+
*`SKAFFOLD_PUSH` (same as `--push`)
242
244
*`SKAFFOLD_QUIET` (same as `--quiet`)
243
245
*`SKAFFOLD_REMOTE_CACHE_DIR` (same as `--remote-cache-dir`)
244
246
*`SKAFFOLD_RPC_HTTP_PORT` (same as `--rpc-http-port`)
0 commit comments