@@ -61,26 +61,23 @@ var publishCmd = &cobra.Command{
6161 [--regex "REGEX"]
6262 [--filter "WILDCARD"]
6363 [--parallel PARALLEL_DEPTH]
64- [--publish -arg KEY=VALUE]
65- [--publish -option VALUE]
64+ [--build -arg KEY=VALUE]
65+ [--build -option VALUE]
6666 [--copy-extra PATH]
6767 [--tag <sha|branch|describe>]
6868 [--platforms linux/arm/v7]` ,
69- Short : "Builds OpenFaaS function containers" ,
70- Long : `Builds OpenFaaS function containers either via the supplied YAML config using
71- the "--yaml" flag (which may contain multiple function definitions), or directly
72- via flags.` ,
73- Example : ` faas-cli publish -f https://domain/path/myfunctions.yml
74- faas-cli publish -f ./stack.yml --no-cache --publish-arg NPM_VERSION=0.2.2
75- faas-cli publish -f ./stack.yml --publish-option dev
76- faas-cli publish -f ./stack.yml --tag sha
77- faas-cli publish -f ./stack.yml --tag branch
78- faas-cli publish -f ./stack.yml --tag describe
79- faas-cli publish -f ./stack.yml --filter "*gif*"
80- faas-cli publish -f ./stack.yml --regex "fn[0-9]_.*"
81- faas-cli publish --image=my_image --lang=python --handler=/path/to/fn/
82- --name=my_fn --squash
83- faas-cli publish -f ./stack.yml --publish-label org.label-schema.label-name="value"` ,
69+ Short : "Builds and pushes multi-arch OpenFaaS functions" ,
70+ Long : `Builds and pushes multi-arch OpenFaaS functions using Docker buildx.
71+ A multi-arch template is required. Images will not be available in the
72+ local Docker library. This command only works when a YAML file is specified.
73+
74+ See also: faas-cli build` ,
75+ Example : ` faas-cli publish --platforms linux/amd64,linux/arm64,linux/arm/7
76+ faas-cli publish --platforms linux/arm/7 --filter webhook
77+ faas-cli publish -f go.yml --no-cache --build-arg NPM_VERSION=0.2.2
78+ faas-cli publish --build-option dev
79+ faas-cli publish --tag sha
80+ ` ,
8481 PreRunE : preRunBuild ,
8582 RunE : runPublish ,
8683}
0 commit comments