cmd/osbuild-worker: Pass bucket config to job implementation
This commit is contained in:
parent
0c762d4ca0
commit
663f1dcbee
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue