Environment-Gated Deployment
Autodesk 👶 Easy CI/CD
Beginner Mode

Start your terminal to use beginner mode.

Objective

A repository at /home/interview/repo has a deployment workflow that deploys to both Staging and Production automatically on every push. Both jobs run in parallel with no ordering or approval.

Task

Modify the workflow at .github/workflows/deploy.yml to implement a gated deployment. The production job should only run after staging has completed successfully (using needs), and should be assigned to an environment named production (using environment).

File Path

  • Workflow: /home/interview/repo/.github/workflows/deploy.yml

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 →