debian-forge-composer/internal/target/worker_server_target.go
Tomáš Hozza 5b414a4516 Target: expose osbuild artifact information in target result
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.
2023-09-27 12:39:28 +02:00

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)
}