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

feat: Support pushing multi-arch images to a custom image registry #1815

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

CH3CHO
Copy link
Collaborator

@CH3CHO CH3CHO commented Feb 25, 2025

Ⅰ. Describe what this PR did

Support pushing multi-arch images to a custom image registry, so user can fork higress to his own GitHub repo, and use GitHub actions to build higress images.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

  1. .github/workflows/build-image-and-push.yaml is shown completed modified due to the line break change from CRLF to LF. Actually, only Build Docker Image and Push steps are changed.
  2. Because the names of pilot and gateway images are determined by DOCKER_TARGETS env and the env value is fixed in the upstream repository, we are unable to change them. So extra images with name pilot and proxyv2 will be pushed to the custom repository with the same image repository URL. For example, if user configures to push images with name hub.foo.bar/higress/higress-pilot, both hub.foo.bar/higress/higress-pilot and hub.foo.bar/higress/pilot will be pushed, referring to the same digest.

@codecov-commenter
Copy link

codecov-commenter commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.43%. Comparing base (ef31e09) to head (4cb9e30).
Report is 312 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1815      +/-   ##
==========================================
+ Coverage   35.91%   43.43%   +7.52%     
==========================================
  Files          69       76       +7     
  Lines       11576    12278     +702     
==========================================
+ Hits         4157     5333    +1176     
+ Misses       7104     6616     -488     
- Partials      315      329      +14     

see 71 files with indirect coverage changes

@Xunzhuo
Copy link
Collaborator

Xunzhuo commented Feb 26, 2025

Can you give a fork as an example?

@CH3CHO
Copy link
Collaborator Author

CH3CHO commented Feb 26, 2025

@CH3CHO
Copy link
Collaborator Author

CH3CHO commented Feb 26, 2025

Copy link
Collaborator

@johnlanni johnlanni left a comment

Choose a reason for hiding this comment

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

LGTM

@johnlanni johnlanni merged commit 45fdd95 into alibaba:main Feb 26, 2025
12 checks passed
@CH3CHO CH3CHO deleted the feat/custom-image-registry branch February 26, 2025 13:22
johnlanni added a commit to johnlanni/higress that referenced this pull request Mar 26, 2025
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.

4 participants