debian-forge-composer/internal/target/koji_target.go
Ondřej Budai befeef34a5 koji: use nvra as the filename for images
We have the same thing for AWS. The AWS target also specifies under what name
should be the image available in EC2.

As requested by Brew maintainers Tomáš Kopeček and Lubomír Sedlář.
2020-10-27 19:01:30 +00:00

20 lines
625 B
Go

package target
type KojiTargetOptions struct {
BuildID uint64 `json:"build_id"`
TaskID uint64 `json:"task_id"`
Token string `json:"token"`
Name string `json:"name"`
Version string `json:"version"`
Release string `json:"release"`
Filename string `json:"filename"`
UploadDirectory string `json:"upload_directory"`
Server string `json:"server"`
KojiFilename string `json:"koji_filename"`
}
func (KojiTargetOptions) isTargetOptions() {}
func NewKojiTarget(options *KojiTargetOptions) *Target {
return newTarget("org.osbuild.koji", options)
}