fix: publisher - create versions file correctly
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 9s
CI Workflow / CI (pull_request) Failing after 32m55s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 43m23s
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 9s
CI Workflow / CI (pull_request) Failing after 32m55s
CI Workflow / Code coverage report (pull_request) Has been skipped
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 43m23s
This commit is contained in:
parent
0c9ecfc670
commit
3461852e31
2 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue