Current Behavior
Missing Docker Dependency in build-and-release.yml
Currently, both jobs run independently and in parallel. The docker job doesn't wait for the build job to complete.
Risk
- When the
build jobs fail, the docker job still start and run.
- The Docker build process inside the Docker image might fail if the binary wasn't properly built.
- This creates a broken Docker image being pushed to the registry
Desired Behavior
Create explicit dependency telling github action, don't start the docker until build job succeed.
Implementation
Add need keyword which tells github action to create job dependency of docker job.
Current Behavior
Missing Docker Dependency in
build-and-release.ymlCurrently, both jobs run independently and in parallel. The
dockerjob doesn't wait for thebuildjob to complete.Risk
buildjobs fail, thedockerjob still start and run.Desired Behavior
Create explicit dependency telling github action, don't start the
dockeruntilbuildjob succeed.Implementation
Add
needkeyword which tells github action to create job dependency ofdockerjob.