CLOUDP-295785 - Publish agent images to staging repo automatically #530
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.
Summary
Publish agent images to staging repo automatically. Whenever new version of
agentappears in therelease.json,build_agent_images_ubiwill build and push it to appropriate registry. For PRs it will appear in thedevregistry, but when the commit is merged to master, samebuild_agent_images_ubiwill publish agent image tostagingregistry. This is possible, because now agent images utiliseskip-if-existsflag that makes sure we only build and publishagentimage that is not yet published for particular registry, others are skipped.Renamed
manual_releasescenario to existingrelease.manual_releasewas only used byagentandops_managerrelease process and was unnecessary distinction from release scenario. This also helps to runagentandops_managerrelease tasks from EVG, becauseevg_private_contextwas not aware ofmanual_releasescenario:mongodb-kubernetes/scripts/dev/contexts/evg-private-context
Lines 121 to 153 in 7f864b2
Proof of Work
publish_om80_images was triggered manually. No images were published, because all of them exist already in quay.io/mongodb registry. The build scenario however was properly inferred as
releaseChecklist
skip-changeloglabel if not needed