Docker and CI/CD · Junior · Question 53 of 75
How do you make a deploy job wait for the test job?
- 1Put the deploy job below test in the file
- ✓Correct answer: Add
needs: testto the deploy job - 3Add
wait: trueto both of the jobs
Explanation
Jobs run in parallel unless needs creates a dependency. If test fails, jobs that need it are skipped.