cmd/osbuild-worker: Pass bucket config to job implementation

This commit is contained in:
Sanne Raymaekers 2022-03-09 12:02:57 +01:00
parent 0c762d4ca0
commit 663f1dcbee

View file

@ -279,8 +279,10 @@ func main() {
// worker will look in $HOME/.aws/credentials or at the file pointed by // worker will look in $HOME/.aws/credentials or at the file pointed by
// the "AWS_SHARED_CREDENTIALS_FILE" variable. // the "AWS_SHARED_CREDENTIALS_FILE" variable.
var awsCredentials = "" var awsCredentials = ""
var awsBucket = ""
if config.AWS != nil { if config.AWS != nil {
awsCredentials = config.AWS.Credentials awsCredentials = config.AWS.Credentials
awsBucket = config.AWS.Bucket
} }
// depsolve jobs can be done during other jobs // depsolve jobs can be done during other jobs
@ -323,6 +325,7 @@ func main() {
GCPCreds: gcpCredentials, GCPCreds: gcpCredentials,
AzureCreds: azureCredentials, AzureCreds: azureCredentials,
AWSCreds: awsCredentials, AWSCreds: awsCredentials,
AWSBucket: awsBucket,
}, },
"osbuild-koji": &OSBuildKojiJobImpl{ "osbuild-koji": &OSBuildKojiJobImpl{
Store: store, Store: store,