QuestionQ23

Author and manage workflows

As a developer, which workflow steps should be performed to publish an image to the GitHub Container Registry? (Each correct answer represents part of the solution.

Choose three
  • A Push the image to the GitHub Container Registry.
  • B Authenticate to the GitHub Container Registry.
  • C Use the actions/setup-docker action.
  • D Pull the image from the GitHub Container Registry.
  • E Build the container image.
Explanation

Publishing a container image to GitHub Container Registry requires building the image, authenticating to ghcr.io with credentials that have package-write permission, and pushing the built, tagged image. GitHub’s documented workflow logs in to the Container registry and uses a build-and-push step to publish the image.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!