GITHUB-ACTIONS · Question #39
Which files are required for a Docker container action in addition to the source code? (Choose two.)
The correct answer is A. Dockerfile D. action.yml. Dockerfile: The Dockerfile is required for Docker container actions. It defines the environment for the action, specifying the base image, dependencies, and any commands to set up the action's runtime inside the container. action.yml: The action.yml file is required for all GitHu
Question
Which files are required for a Docker container action in addition to the source code? (Choose two.)
Options
- ADockerfile
- BActionfile
- Cmetadata.yml
- Daction.yml
How the community answered
(46 responses)- A93% (43)
- B2% (1)
- C4% (2)
Explanation
Dockerfile: The Dockerfile is required for Docker container actions. It defines the environment for the action, specifying the base image, dependencies, and any commands to set up the action's runtime inside the container. action.yml: The action.yml file is required for all GitHub Actions, including Docker container actions. It contains metadata about the action, including the inputs, outputs, and the runtime environment (which in this case is Docker, defined under runs.using).
Topics
Community Discussion
No community discussion yet for this question.