OSDN Git Service

Use environment variable for json output.
authorTatsuki Sugiura <sugi@nemui.org>
Mon, 7 Oct 2019 05:06:43 +0000 (14:06 +0900)
committerTatsuki Sugiura <sugi@nemui.org>
Mon, 7 Oct 2019 05:07:40 +0000 (14:07 +0900)
create-image

index 0f815e0..7c9eeff 100755 (executable)
@@ -170,8 +170,8 @@ class ImageCreator
         "Description" => dir.path == '/' ? 'root' : dir.path[1..-1].tr('/', '-'),
         "Format" => "raw",
         "UserBucket" => {
-          "S3Bucket" => "Change-to-your-buket-name",
-          "S3Key" => "/src-disks/#{img_path_base}_#{idx}.img"
+          "S3Bucket" => ENV.fetch("S3_BUCKET", "osdn-base-images"),
+          "S3Key" => "#{ENV.fetch("S3_KEY_PREFIX", "src-disks/")}#{img_path_base}_#{idx}.img"
         }
       })
     end