faas-cli
faas-cli copied to clipboard
faas-cli publish with the `--parallel` flag not working in Github Actions
Expected Behaviour
The parallel flag in faas-cli publish should not give an error.
Current Behaviour
faas-cli publish --parallel gives out an error:

Possible Solution
PR in the works.
Steps to Reproduce (for bugs)
A live example of the CI workflow is at: https://github.com/utsavanand2/openfaas-cloud/runs/1458552162?check_suite_focus=true#step:10:1351
Append this index to each builder
https://github.com/openfaas/faas-cli/blob/c9d284d0c5bd90415baf9130fdce55af8e5a506b/commands/publish.go#L179
If in parallel, you may need to create the named builder within the go routine body
Around here
https://github.com/openfaas/faas-cli/blob/c9d284d0c5bd90415baf9130fdce55af8e5a506b/commands/publish.go#L187