Reconcile multi arch support for push-image workflow #984
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.
Summary
This PR reconciles the implementation of push-image workflow for a single architecture with the multi-arch one that currently exists on jammy-tiny-stack.
In addition to the changes on
push-image.yml
workflow, this PR introduces an extra script calledpublish.sh
, which is able to push multiple architectures to the registry and not only a single one. Thepublish.sh
script is based on the multi-arch implementation script that exists on jammy-tiny-stack https://github.com/paketo-buildpacks/jammy-tiny-stack/blob/main/scripts/publish.sh. In addition, extra functionality to thepublish.sh
script has been added to push one image per time instead of two (build and run images = stack), as jam now supports the publish-image argument. This enables faster push to image registries (in push-image workflow) due to job parallelization, less code on the push-image workflow as the same action is used for the build and the run image, a more generic approach to support ubi scenarios where the build image is not used/pushed in most of the stacks.This PR has been tested to push the images properly to the registries. Test results :
Use Cases
Checklist