I have a workflow containing a job which test java code and build a docker image and then deploy the docker image and do integration testing
Very often I have to re-run the workflow because something went wrong with the integration testing. This can be a deploy failure or most often wrong test cases for the new code which has been build.
After correcting the integration tests, I need to re-run this workflow, but it should not be necessary to rebuild code when there already exists a docker image for this sha…
I would like to have a workflow which only builds the docker image when it is not present in the GitHub-packages. This is my present workflow:
I would like to have a job called
verify which runs
build as a step if the docker image cannot be found for the commit sha being built. When the step
verify is finished (either if the docker image already exists or it has build a docker image), then the step called
deploy_dev should run…
Is this possible? How?