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
"Container registry + registry namespace. (ex 'ghcr.io/myuser'). The full image name is automatically determined using this along with function name. ($FUNC_REGISTRY)")
104
105
cmd.Flags().Bool("registry-insecure", cfg.RegistryInsecure, "Skip TLS certificate verification when communicating in HTTPS with the registry ($FUNC_REGISTRY_INSECURE)")
106
+
cmd.Flags().String("registry-authfile", "", "Path to a authentication file containing registry credentials ($FUNC_REGISTRY_AUTHFILE)")
105
107
106
108
// Function-Context Flags:
107
109
// Options whose value is available on the function with context only
@@ -293,6 +295,9 @@ type buildConfig struct {
293
295
// Build with the current timestamp as the created time for docker image.
294
296
// This is only useful for buildpacks builder.
295
297
WithTimestampbool
298
+
299
+
// RegistryAuthfile is the path to a docker-config file containing registry credentials.
300
+
RegistryAuthfilestring
296
301
}
297
302
298
303
// newBuildConfig gathers options into a single build request.
--base-image string Override the base image for your function (host builder only)
61
-
--build-timestamp Use the actual time as the created time for the docker image. This is only useful for buildpacks builder.
62
-
-b, --builder string Builder to use when creating the function's container. Currently supported builders are "host", "pack" and "s2i". ($FUNC_BUILDER) (default "pack")
63
-
--builder-image string Specify a custom builder image for use by the builder other than its default. ($FUNC_BUILDER_IMAGE)
64
-
-c, --confirm Prompt to confirm options interactively ($FUNC_CONFIRM)
65
-
-h, --help help for build
66
-
-i, --image string Full image name in the form [registry]/[namespace]/[name]:[tag] (optional). This option takes precedence over --registry ($FUNC_IMAGE)
67
-
-p, --path string Path to the function. Default is current directory ($FUNC_PATH)
68
-
--platform string Optionally specify a target platform, for example "linux/amd64" when using the s2i build strategy
69
-
-u, --push Attempt to push the function image to the configured registry after being successfully built
70
-
-r, --registry string Container registry + registry namespace. (ex 'ghcr.io/myuser'). The full image name is automatically determined using this along with function name. ($FUNC_REGISTRY)
71
-
--registry-insecure Skip TLS certificate verification when communicating in HTTPS with the registry ($FUNC_REGISTRY_INSECURE)
72
-
-v, --verbose Print verbose logs ($FUNC_VERBOSE)
60
+
--base-image string Override the base image for your function (host builder only)
61
+
--build-timestamp Use the actual time as the created time for the docker image. This is only useful for buildpacks builder.
62
+
-b, --builder string Builder to use when creating the function's container. Currently supported builders are "host", "pack" and "s2i". ($FUNC_BUILDER) (default "pack")
63
+
--builder-image string Specify a custom builder image for use by the builder other than its default. ($FUNC_BUILDER_IMAGE)
64
+
-c, --confirm Prompt to confirm options interactively ($FUNC_CONFIRM)
65
+
-h, --help help for build
66
+
-i, --image string Full image name in the form [registry]/[namespace]/[name]:[tag] (optional). This option takes precedence over --registry ($FUNC_IMAGE)
67
+
-p, --path string Path to the function. Default is current directory ($FUNC_PATH)
68
+
--platform string Optionally specify a target platform, for example "linux/amd64" when using the s2i build strategy
69
+
-u, --push Attempt to push the function image to the configured registry after being successfully built
70
+
-r, --registry string Container registry + registry namespace. (ex 'ghcr.io/myuser'). The full image name is automatically determined using this along with function name. ($FUNC_REGISTRY)
71
+
--registry-authfile string Path to a docker-config file containing registry credentials ($FUNC_REGISTRY_AUTHFILE)
72
+
--registry-insecure Skip TLS certificate verification when communicating in HTTPS with the registry ($FUNC_REGISTRY_INSECURE)
0 commit comments