-
Notifications
You must be signed in to change notification settings - Fork 333
Open
Labels
area/controllerAffects the (main) controllerAffects the (main) controllerkind/enhancementAn entirely new featureAn entirely new featurepriority/normalThis is the priority for most workThis is the priority for most work
Milestone
Description
Proposed Feature
Add a push-tag orpush-image step for images and a push-tag step for repositories
Edit(@krancour): Further discussion in this thread will be limited to images. Pushing git tags has been broken out to a separate issue. See #5737.
Motivation
This would allow to release tags only for versions that have been properly tested (promoted in a testing environment), the following pattern :
You can also look at the following reddit discussion
Two warehouses:
- A, which subscribe using the NewestBuild strategy
- B, which subscribe using the SemVer strategy
- Artifact (git or image) is pulled from warehouse A using the NewestBuild strategy (ex: reference fe80c...)
- Artifact is promoted to a testing environment
- Artifact is tested with an AnalysisRun
- If the AnalysisRun is valid, push a tag to git repo/image repo (ex: reference 1.0.2)
- That artifact (1.0.2) is retrieved using the SemVer stategy
- Artifact is promoted to as staging environment
- ...
- Artifact is promoted to a production environment
Suggested Implementation
A couple important points :
- Make sure that there is a way to specify and/or automatically determine and set what will be the (name) of the tag that will be pushed to git/image registry.
- Make sure that the
push-tagcan happen after an AnalysisRun. - For image registries, we could create either a
push-imageorpush-tagbut the most important bit is the ability to tag the image that has been tested.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/controllerAffects the (main) controllerAffects the (main) controllerkind/enhancementAn entirely new featureAn entirely new featurepriority/normalThis is the priority for most workThis is the priority for most work