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

fix(ci): simplify and fix multi-arch image publishing process #2542

Merged

Conversation

LucaGuerra
Copy link
Contributor

@LucaGuerra LucaGuerra commented May 11, 2023

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug
/kind cleanup

/area CI

What this PR does / why we need it:

This is a refactor and fix of the container image publishing process. There are two major changes:

  1. Images with arch-specific tags are pushed to Docker Hub (e.g. :x86_64-0.35.0). This is done because in order to create a multiarch (index, manifest.list) manifest easily we need manifests with the referenced digests already published. It is probably possible to do it without (buildx can do something similar) but it may involve a local registry or some more complicated process. I think this is fine for now.
  2. Instead of building images multiple times and then publishing all of them, this one only builds one version (docker.io/falcosecurity/falco) and then adds any additional tags or registries (ECR, latest tags...). This simplifies things especially when the next PR will be published, which is related to signatures with cosign.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Note that the arch specific tags are not pushed to ECR. We can change this behavior

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Luca Guerra <luca@guerra.sh>
@FedeDP
Copy link
Contributor

FedeDP commented May 12, 2023

/milestone 0.35.0

@poiana poiana added this to the 0.35.0 milestone May 12, 2023
Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link

poiana commented May 12, 2023

LGTM label has been added.

Git tree hash: ade5420f7b4d07d0e8bdd63c1f4dd8b1d28c2b56

Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link

poiana commented May 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, FedeDP, LucaGuerra

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@LucaGuerra
Copy link
Contributor Author

Refs #2501

@poiana poiana merged commit ea0b44d into falcosecurity:master May 12, 2023
16 checks passed
@LucaGuerra LucaGuerra deleted the update/release-pipeline-multiarch branch May 22, 2023 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants