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.
29 lines
944 B
Go
29 lines
944 B
Go
package target
|
|
|
|
const TargetNameAzure TargetName = "org.osbuild.azure"
|
|
|
|
type AzureTargetOptions struct {
|
|
StorageAccount string `json:"storageAccount"`
|
|
StorageAccessKey string `json:"storageAccessKey"`
|
|
Container string `json:"container"`
|
|
}
|
|
|
|
func (AzureTargetOptions) isTargetOptions() {}
|
|
|
|
// NewAzureTarget creates org.osbuild.azure target
|
|
//
|
|
// This target uploads a Page Blob to Azure Storage.
|
|
//
|
|
// The target uses Azure Storage keys for authentication, see:
|
|
// https://docs.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage
|
|
// The credentials are defined inside the target options.
|
|
//
|
|
// If you need to upload an Azure Image instead, see the
|
|
// org.osbuild.azure.image target.
|
|
func NewAzureTarget(options *AzureTargetOptions) *Target {
|
|
return newTarget(TargetNameAzure, options)
|
|
}
|
|
|
|
func NewAzureTargetResult(artifact *OsbuildArtifact) *TargetResult {
|
|
return newTargetResult(TargetNameAzure, nil, artifact)
|
|
}
|