mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 14:43:52 +03:00
parent
7b47cb43c1
commit
c9f38e2813
1 changed files with 12 additions and 12 deletions
|
@ -265,18 +265,18 @@ func (pc sourcehutConvertor) buildManifest(repo *api.Repository, commitID, gitRe
|
||||||
}
|
}
|
||||||
defer r.Close()
|
defer r.Close()
|
||||||
var manifest struct {
|
var manifest struct {
|
||||||
Image string `yaml:"image"`
|
Image yaml.Node `yaml:"image"`
|
||||||
Arch string `yaml:"arch,omitempty"`
|
Arch yaml.Node `yaml:"arch,omitempty"`
|
||||||
Packages []string `yaml:"packages,omitempty"`
|
Packages yaml.Node `yaml:"packages,omitempty"`
|
||||||
Repositories map[string]string `yaml:"repositories,omitempty"`
|
Repositories yaml.Node `yaml:"repositories,omitempty"`
|
||||||
Artifacts []string `yaml:"artifacts,omitempty"`
|
Artifacts yaml.Node `yaml:"artifacts,omitempty"`
|
||||||
Shell bool `yaml:"shell,omitempty"`
|
Shell yaml.Node `yaml:"shell,omitempty"`
|
||||||
Sources []string `yaml:"sources"`
|
Sources []string `yaml:"sources"`
|
||||||
Tasks []map[string]string `yaml:"tasks"`
|
Tasks yaml.Node `yaml:"tasks"`
|
||||||
Triggers []string `yaml:"triggers,omitempty"`
|
Triggers yaml.Node `yaml:"triggers,omitempty"`
|
||||||
Environment map[string]string `yaml:"environment"`
|
Environment map[string]string `yaml:"environment"`
|
||||||
Secrets []string `yaml:"secrets,omitempty"`
|
Secrets yaml.Node `yaml:"secrets,omitempty"`
|
||||||
Oauth string `yaml:"oauth,omitempty"`
|
Oauth yaml.Node `yaml:"oauth,omitempty"`
|
||||||
}
|
}
|
||||||
if err := yaml.NewDecoder(r).Decode(&manifest); err != nil {
|
if err := yaml.NewDecoder(r).Decode(&manifest); err != nil {
|
||||||
msg := fmt.Sprintf("could not decode manifest %q", pc.meta.ManifestPath)
|
msg := fmt.Sprintf("could not decode manifest %q", pc.meta.ManifestPath)
|
||||||
|
|
Loading…
Reference in a new issue