Skip to content

Commit

Permalink
Merge pull request #65 from lonnylot/patch-2
Browse files Browse the repository at this point in the history
Update S3Provider.php
  • Loading branch information
simonhamp committed Apr 30, 2024
2 parents 4f80160 + 8a088d4 commit 3a9f93b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/Updater/S3Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,22 @@ public function __construct(protected array $config)
{
}

public function providedEnvironmentVariables(): array
public function environmentVariables(): array
{
return [];
return [
'AWS_ACCESS_KEY_ID' => $this->config['key'],
'AWS_SECRET_ACCESS_KEY' => $this->config['secret'],
];
}

public function builderOptions(): array
{
return [
'provider' => 's3',
'endpoint' => $this->config['endpoint'],
'region' => $this->config['region'],
'bucket' => $this->config['bucket'],
'path' => $this->config['path'],
];
}
}

0 comments on commit 3a9f93b

Please sign in to comment.