Azure/cli

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

Closed this issue · 3 comments

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

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?

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

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.

cli/src/main.ts

Line 121 in d88d576

const dockerTool: string = await io.which("docker", true);

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.