Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLAY-648] Multi platform images #289

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Conversation

koncar
Copy link
Contributor

@koncar koncar commented Nov 17, 2023

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:
image

single platform image (old) - pushed first
image

multi platform image(new) - which overwrites single platform image when it's built from main branch
image

@koncar koncar requested review from ghkadim and dechegaray November 17, 2023 14:22
@theketchio theketchio deleted a comment from github-advanced-security bot Nov 17, 2023
@koncar koncar merged commit fa0e6c4 into main Nov 17, 2023
6 checks passed
@koncar koncar deleted the PLAY-648-multiplatform-images branch November 17, 2023 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants