mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-23 23:40:44 -04:00
ci: upload cli version list (#1377)
* upload cli version list * fix flag * name * allow cli kind for listing * [remove] update vapi cli * allow cli kind * use latest versionsapi image version * fix kind parsing * use workflow calls in on_release action * [remove] update container tag * change back to latest tag
This commit is contained in:
parent
b356af5a39
commit
01705feb51
6 changed files with 84 additions and 26 deletions
|
@ -74,7 +74,7 @@ func (l List) ValidateRequest() error {
|
|||
if l.Granularity != GranularityMajor && l.Granularity != GranularityMinor {
|
||||
retErr = errors.Join(retErr, fmt.Errorf("granularity %q is not supported", l.Granularity))
|
||||
}
|
||||
if l.Kind != VersionKindImage {
|
||||
if l.Kind == VersionKindUnknown {
|
||||
retErr = errors.Join(retErr, fmt.Errorf("kind %q is not supported", l.Kind))
|
||||
}
|
||||
if !semver.IsValid(l.Base) {
|
||||
|
@ -117,7 +117,7 @@ func (l List) Validate() error {
|
|||
if l.Granularity != GranularityMajor && l.Granularity != GranularityMinor {
|
||||
retErr = errors.Join(retErr, fmt.Errorf("granularity %q is not supported", l.Granularity))
|
||||
}
|
||||
if l.Kind != VersionKindImage {
|
||||
if l.Kind == VersionKindUnknown {
|
||||
retErr = errors.Join(retErr, fmt.Errorf("kind %q is not supported", l.Kind))
|
||||
}
|
||||
if !semver.IsValid(l.Base) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue