Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

GitHub Exam GitHub-Actions Topic 2 Question 4 Discussion

Actual exam question for GitHub's GitHub-Actions exam
Question #: 4
Topic #: 2
[All GitHub-Actions Questions]

Which files are required for a Docker container action in addition to the source code? (Choose two.)

Show Suggested Answer Hide Answer
Suggested Answer: A, D

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).


Contribute your Thoughts:

Jillian
2 months ago
Aw man, this is easy. A and D are the only sensible options here. B and C? Seriously, what is this, amateur hour?
upvoted 0 times
...
Timothy
2 months ago
A and D, obviously. The other choices sound like they were made up by someone who's been living under a rock. Docker is all about Dockerfiles and action.yml, baby!
upvoted 0 times
...
Tiffiny
2 months ago
Haha, I bet the person who wrote this question has never actually used Docker before. Of course it's A and D, what else would you need?
upvoted 0 times
...
Phillip
2 months ago
Definitely A and D. I mean, who needs an Actionfile or a metadata.yml file for a Docker container action? That's just extra fluff.
upvoted 0 times
Avery
1 months ago
Yeah, Actionfile and metadata.yml are not necessary for a Docker container action.
upvoted 0 times
...
Von
2 months ago
I agree, Dockerfile and action.yml are the essential files for a Docker container action.
upvoted 0 times
...
...
Elbert
2 months ago
I think the correct answers are A) Dockerfile and D) action.yml. The Dockerfile is where you define the container image, and the action.yml file describes the action metadata.
upvoted 0 times
Nana
2 months ago
Make sure to include both files for the Docker container action.
upvoted 0 times
...
Deangelo
2 months ago
Yes, D) action.yml is also required to describe the action metadata.
upvoted 0 times
...
Wenona
2 months ago
I agree, A) Dockerfile is needed to define the container image.
upvoted 0 times
...
...
Scot
3 months ago
I believe D) action.yml is also required for a Docker container action.
upvoted 0 times
...
Maira
3 months ago
I agree with Fernanda, Dockerfile is definitely needed.
upvoted 0 times
...
Fernanda
3 months ago
I think A) Dockerfile is required.
upvoted 0 times
...

Save Cancel