Reconcile multi arch support for push-image workflow #984
+295
−54
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 push-image.yml changes, this PR adds an extra script called
publish.sh
, which pushes the images to the registry. Thepublish.sh
is based on the multiarch implementation script that exists on jammy-tiny-stack https://github.com/paketo-buildpacks/jammy-tiny-stack/blob/main/scripts/publish.sh and in addition extra functionality has been added, to push one image per time instead of two images per time, as jam now supports this feature paketo-buildpacks/jam#346 . The default functionality of the publis.sh script has not been changed.This PR has been tested that pushes the images properly to the registries. Test results :
This PR does not change any of the current functionality of the stacks while pushing to registry. It only adds new functionality which enables single and multi arch implementation to publish their images.
Use Cases
Checklist