In a Docker container action's action.yml, what do the 'args:' field values correspond to in the Docker context?
Select an answer to reveal the explanation.
Short Explanation and Infographic
In a Docker action, 'args:' maps to what Docker calls CMD — the arguments passed to your container's ENTRYPOINT script.
Full explanation below image
Full Explanation
In a Docker container action's action.yml, the 'runs.args:' field provides arguments that override the Dockerfile's CMD instruction and are passed to the ENTRYPOINT. These can reference action inputs using '${{ inputs.my-input }}'. The 'entrypoint:' field in action.yml overrides the ENTRYPOINT directive. 'args:' is not for Docker build arguments (--build-arg), not for RUN layer commands (those are in the Dockerfile), and not for environment variables (those use 'env:'). Docker actions are pulled from Docker Hub or built from a Dockerfile in the action repository.