Use multistage docker build action in docker_publish.yml #875
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I replaced most of the docker build actions with a multistage build action that will build all the stages in one job. This is still a work in progress, and I haven't changed the housekeeping job or updated the image names for the jobs that run tests.
Motivation and Context
Using the multistage action was briefly mentioned here.
This PR is a proof of concept to see if the multistage build action can be used in the
docker_publish.yml
workflow and how it should be implemented. Let me know if I should branch off of the PR in the previous link since that one modifies theDockerfile
to include the install scripts.Changes
This PR makes
docker_publish.yml
build the images with the multistage docker build action, which is simpler and uses caching of images to avoid building stages that have stayed the same since the last build.Behavior
The current behavior is that there is a job for each stage of the
Dockerfile
, and each job is dependent on the previous job in the workflow. The new behavior is that there is one job that will build all the stages in theDockerfile
using the multistage docker build action.