GH-200 practice question 2 of 15
As a developer, which workflow steps should you perform to publish an image to the GitHub Container Registry? (Choose three.)
Full set: 100 questionsPublishing a container image to a registry, including the GitHub Container Registry (GHCR), follows a standard procedure. First, you must authenticate with the registry to gain push access (B). Next, you must build the container image from its source, such as a Dockerfile (C). Finally, after the image is successfully built and tagged, you push it to the designated registry (D). These three steps represent the core lifecycle of publishing a container image.
Option A is incorrect because while actions/setup-docker is a useful action for setting up Buildx, it is not a fundamental step; building can be done without it.
Option E is incorrect because pulling an image is an act of consuming or downloading it from the registry, not publishing it.
- GitHub Docs. (n.d.). Publishing Docker images. Retrieved from https://docs.github.com/en/actions/publishing-packages/publishing-docker-images. This guide outlines the standard workflow, which includes logging in to the registry, and then building and pushing the image.
Keep practicing
Take the free GH-200 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GH-200 practice questions
- Question 1Which action type should be used to bundle a series of run steps into a reusable custom a…
- Question 3Where should workflow files be stored to be triggered by events in a repository?
- Question 5Which default environment variable specifies the branch or tag that triggered a workflow?
- Question 6As a developer, what is the safest way to reference an action to prevent modification of …
- Question 7Without the need to use additional infrastructure, what is the simplest and most maintain…
- Question 8Disabling a workflow allows you to stop a workflow from being triggered without having to…
