Docker Image Tagging with Commit SHA
Microsoft ☯️ Medium CI/CD
Beginner Mode

Start your terminal to use beginner mode.

Objective

A repository at /home/interview/repo contains a Dockerfile and a starter GitHub Actions workflow, but no automated build process.

Task

Complete the workflow at .github/workflows/build.yml so that every push to the main branch builds a Docker image named app tagged with the short commit SHA.

File Path

  • Workflow: /home/interview/repo/.github/workflows/build.yml
  • Dockerfile: /home/interview/repo/Dockerfile

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

Linux Terminal Environment

Write and execute your solution in the terminal below.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →