Skip to content

Commit ce4ba39

Browse files
authored
Merge pull request #141 from drgarcia1986/minio-bucket-fix
feat(normalize_storage): use `MINIO_BUCKET` env-var
2 parents 4a790da + cc9ab8c commit ce4ba39

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rootfs/bin/normalize_storage

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env bash
22
export BUCKET_FILE=/var/run/secrets/deis/objectstore/creds/builder-bucket
33
if [ "$BUILDER_STORAGE" == "minio" ]; then
4+
MINIO_BUCKET_NAME=${MINIO_BUCKET:-git}
45
mkdir -p /app/objectstore/minio/
5-
echo "git" > /app/objectstore/minio/builder-bucket
6+
echo "$MINIO_BUCKET_NAME" > /app/objectstore/minio/builder-bucket
67
export BUCKET_FILE=/app/objectstore/minio/builder-bucket
78
elif [ "$BUILDER_STORAGE" == "azure" ] || [ "$BUILDER_STORAGE" == "swift" ] ; then
89
export CONTAINER_FILE=/var/run/secrets/deis/objectstore/creds/builder-container

0 commit comments

Comments
 (0)