From 663f1dcbee8d30c1fbe8430f28c7d8a4221b57cb Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Wed, 9 Mar 2022 12:02:57 +0100 Subject: [PATCH] cmd/osbuild-worker: Pass bucket config to job implementation --- cmd/osbuild-worker/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/osbuild-worker/main.go b/cmd/osbuild-worker/main.go index 5e681689c..11ce8fa27 100644 --- a/cmd/osbuild-worker/main.go +++ b/cmd/osbuild-worker/main.go @@ -279,8 +279,10 @@ func main() { // worker will look in $HOME/.aws/credentials or at the file pointed by // the "AWS_SHARED_CREDENTIALS_FILE" variable. var awsCredentials = "" + var awsBucket = "" if config.AWS != nil { awsCredentials = config.AWS.Credentials + awsBucket = config.AWS.Bucket } // depsolve jobs can be done during other jobs @@ -323,6 +325,7 @@ func main() { GCPCreds: gcpCredentials, AzureCreds: azureCredentials, AWSCreds: awsCredentials, + AWSBucket: awsBucket, }, "osbuild-koji": &OSBuildKojiJobImpl{ Store: store,