Exam Preparation Quiz

Question 55 of 75

Complete The GitHub Actions Script For Container Deployment

MDFT Pro, a well-known training agency, uses a GitHub repository to store source code, infrastructure files and workflow actions. You plan to add a new GitHub action in the repository to create and deploy a Docker container.

You have the following incomplete workflow action to build the container and deploy it to GitHub Container Registry:

steps:
- name: Step 1
  run: 
- name: Step 2
  run: 
- name: Step 3
  run: 

Which three ‘run’ commands should you add to the GitHub action to achieve the goal?

Choose all correct answers from the options below.

Explanations for each answer:

Learn more about pushing container images to GCR with GitHub actions:
Pushing to GCR
Next Question