Azure / cli

Automate your GitHub workflows using Azure CLI scripts
MIT License
124 stars 52 forks source link

Error: Unable to find image 'up:latest' locally #109

Closed Dan-Burlacu closed 11 months ago

Dan-Burlacu commented 11 months ago

When using this action after actions-hub/kubectl@master (https://github.com/actions-hub/kubectl) with a redirect-to output, the azurecli action fails with the following error: image

This is the action that triggers this behavior: image

This is how the azurecli action is used afterwards: image

If using the same kubectl action but without getting the output via redirect-to, the azurecli action only logs some errors, but completes successfully: image

This is the build phase for the kubectl action that might interfere with the azurecli action: image

MoChilia commented 11 months ago

The redirect-to option in actions-hub/kubectl set the output of the step Get job result to the environment variable $GITHUB_ENV. The error may be caused by this unescaped env. Could you try to run azure/cli with @master?

Dan-Burlacu commented 11 months ago

It worked, thank you. Still have some warnings, but they don't prove fatal to the action: image

MoChilia commented 11 months ago

This warning is related to the default docker path in Kubernetes. It happened when using the which command to locate the executable path of docker. https://github.com/Azure/cli/blob/d88d5767d50cde2679128b45d287ec5b98df892e/src/main.ts#L121 When searching for the path /usr/local/bin/kubectl/docker, the ENOTDIR error was caught in actions/io/tryGetExecutablePath. The error will not terminate process but continuing searching for the extension paths. You may check which docker is actually being used by running which docker in a bash script. Guess your docker path has been overridden.