Skip to content

Commit 92ef1b7

Browse files
committed
feat(get_object): use MINIO_BUCKET env-var
Use MINIO_BUCKET environment variable to define the bucket name for minio storage type instead of hardcoded `git` If there isnt a value on MINIO_BUCKET var, get_object will use `git` by default
1 parent cf2271a commit 92ef1b7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rootfs/bin/get_object

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ GET_PATH=slug.tgz
44

55
export BUCKET_FILE=/var/run/secrets/deis/objectstore/creds/builder-bucket
66
if [ "$BUILDER_STORAGE" == "minio" ]; then
7+
MINIO_BUCKET_NAME=${MINIO_BUCKET:-git}
78
mkdir -p /app/objectstore/minio
8-
echo "git" > /app/objectstore/minio/builder-bucket
9+
echo "$MINIO_BUCKET_NAME" > /app/objectstore/minio/builder-bucket
910
export BUCKET_FILE=/app/objectstore/minio/builder-bucket
1011
elif [ "$BUILDER_STORAGE" == "azure" ] || [ "$BUILDER_STORAGE" == "swift" ]; then
1112
export CONTAINER_FILE=/var/run/secrets/deis/objectstore/creds/builder-container

0 commit comments

Comments
 (0)