-
Notifications
You must be signed in to change notification settings - Fork 9
[pipeline] add multiarch mco #156
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
base: master
Are you sure you want to change the base?
Conversation
output: | ||
- registry: $(inputs.params.registry)/operator-context | ||
tag: $(inputs.params.version_id) | ||
- registry: $(inputs.params.registry)/mongodb-kubernetes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all of those repo changes should be fine as they are targeting $(inputs.params.registry) which points to ecr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how that worked before? So we didn't publish -context images to quay at all? There is no operator-context repo in quay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a stage in this file called operator-context-release
(now called mongodb-kubernetes-release
) which retags the image from ecr to quay. The quay_registry
already contains image name and this didn't change.
current_span.set_attribute("mck.image_name", image_name) | ||
current_span.set_attribute("mck.architecture", architectures) | ||
|
||
ecr_registry = os.environ.get("BASE_REPO_URL", "268558157000.dkr.ecr.us-east-1.amazonaws.com/dev") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: we should fail if not set. We should require running it with some context at least.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
ecr_registry = os.environ.get("BASE_REPO_URL", "268558157000.dkr.ecr.us-east-1.amazonaws.com/dev") | ||
base_repo = QUAY_REGISTRY_URL if is_release else ecr_registry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this is needed. Looking into the definition of build_image_generic
I see that registry_address
is set to the quay_registry
arg in sonar. In the operator_build_configuration
method we already read BASE_REPO_URL
and set it in the registry
arg for sonar.
Summary
Proof of Work
Checklist
Reminder (Please remove this when merging)