Add the information about osbuid artifact to the target result. Specifically the name of the osbuild pipeline which was exported for the specific target, and the filename of the exported file. This will later enable embedding this information in Koji build metadata to make it easy to reproduce the image build using the attached manifest.
15 lines
438 B
Go
15 lines
438 B
Go
package target
|
|
|
|
const TargetNameWorkerServer TargetName = "org.osbuild.worker.server"
|
|
|
|
type WorkerServerTargetOptions struct{}
|
|
|
|
func (WorkerServerTargetOptions) isTargetOptions() {}
|
|
|
|
func NewWorkerServerTarget() *Target {
|
|
return newTarget(TargetNameWorkerServer, &WorkerServerTargetOptions{})
|
|
}
|
|
|
|
func NewWorkerServerTargetResult(artifact *OsbuildArtifact) *TargetResult {
|
|
return newTargetResult(TargetNameWorkerServer, nil, artifact)
|
|
}
|