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.
Idea is to build multiplatform image, but since cross platform building ARM64 image is really slow (20mins) we will also build old way.
jobs:
build-single-platform - it's old way of building images (no qemu/buildx)
this job runs on PR requests, dev* branch, and also master branch
it is fast, and it will be first to built and pushed to docker hub, so that image that works for most situations is available quickly.
trivy security scans, wait for build-single-platform to complete, and run security scan based on that. It also triggers on schedule, and uses that image
build-multiplatform - this is new really slow way of building image
this job runs only on master
it is slow, and it will overwrite build-single-platform image once it completes. It should work for all distributions
merge waits for build-multiplatform job and it combines all platforms into single tag
pipeline:
single platform image (old) - pushed first
multi platform image(new) - which overwrites single platform image when it's built from main branch