CI: Support more version formats in publishing (#94575)
* cleanup dead code
* add tests and rewrite publish grafanacom steps to reuse
* add pkg/build tests; don't upload CDN assets on grafana releases
(cherry picked from commit 7a2edd35d5)
14 lines
177 B
Go
14 lines
177 B
Go
package validation
|
|
|
|
type ArtifactType int
|
|
|
|
const (
|
|
ArtifactTypeDockerHub ArtifactType = iota
|
|
ArtifactTypeGCSObject
|
|
)
|
|
|
|
type Artifact struct {
|
|
Type ArtifactType
|
|
URL string
|
|
}
|