nerdexam
GitHub

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

Create and publish custom GitHub Actions

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)
  • A
    93% (43)
  • B
    2% (1)
  • C
    4% (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

#Docker container action#Dockerfile#action.yml#required files

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice