KVM host image creator.Jessica Lockwood
修订版 | 159a4e89a7a6b93682a21846ef9e42d4472b74b8 (tree) |
---|---|
时间 | 2019-10-07 14:07:40 |
作者 | Tatsuki Sugiura <sugi@nemu...> |
Commiter | Tatsuki Sugiura |
Use environment variable for json output.
@@ -170,8 +170,8 @@ class ImageCreator | ||
170 | 170 | "Description" => dir.path == '/' ? 'root' : dir.path[1..-1].tr('/', '-'), |
171 | 171 | "Format" => "raw", |
172 | 172 | "UserBucket" => { |
173 | - "S3Bucket" => "Change-to-your-buket-name", | |
174 | - "S3Key" => "/src-disks/#{img_path_base}_#{idx}.img" | |
173 | + "S3Bucket" => ENV.fetch("S3_BUCKET", "osdn-base-images"), | |
174 | + "S3Key" => "#{ENV.fetch("S3_KEY_PREFIX", "src-disks/")}#{img_path_base}_#{idx}.img" | |
175 | 175 | } |
176 | 176 | }) |
177 | 177 | end |