• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

KVM host image creator.Jessica Lockwood


Commit MetaInfo

修订版159a4e89a7a6b93682a21846ef9e42d4472b74b8 (tree)
时间2019-10-07 14:07:40
作者Tatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Log Message

Use environment variable for json output.

更改概述

差异

--- a/create-image
+++ b/create-image
@@ -170,8 +170,8 @@ class ImageCreator
170170 "Description" => dir.path == '/' ? 'root' : dir.path[1..-1].tr('/', '-'),
171171 "Format" => "raw",
172172 "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"
175175 }
176176 })
177177 end