GitHub Actions Certification — Question 6
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
Answer options
- A. Use the actions/setup-docker action
- B. Authenticate to the GitHub Container Registry.
- C. Build the container image.
- D. Push the image to the GitHub Container Registry
- E. Pull the image from the GitHub Container Registry.
Correct answer: A, B, D
Explanation
The correct steps to publish an image to the GitHub Container Registry include using the actions/setup-docker action to set up Docker, authenticating to the registry, and then pushing the image. Building the container image is important, but not explicitly listed as a step in the options, while pulling the image is not necessary for publishing.