diff --git a/cmd/cmd/publish/provider.go b/cmd/cmd/publish/provider.go index d581fbe3..36d7af1d 100644 --- a/cmd/cmd/publish/provider.go +++ b/cmd/cmd/publish/provider.go @@ -143,7 +143,7 @@ func (p *Provider) createVersionsFile() error { // Build the versions file... version := Version{ Version: p.Version, - Protocols: []string{"5.1", "6.0"}, + Protocols: []string{"5.1", "6.1"}, Platforms: nil, } for _, sum := range shasums { diff --git a/cmd/cmd/publish/versions.go b/cmd/cmd/publish/versions.go index 4145612a..397afa15 100644 --- a/cmd/cmd/publish/versions.go +++ b/cmd/cmd/publish/versions.go @@ -22,10 +22,14 @@ type Platform struct { } type Data struct { + Id string `json:"id,omitempty"` Versions []Version `json:"versions"` } func (d *Data) WriteToFile(filePath string) error { + // TODO: make it variable + d.Id = "tfregistry.sysops.stackit.rocks/mhenselin/stackitprivatepreview" + jsonString, err := json.Marshal(d) if err != nil { return fmt.Errorf("error encoding data: %w", err)