Skip to content

Commit 4e0c17c

Browse files
committed
feat(normalize_storage): 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, normalize_storage will use `git` by default
1 parent 273b851 commit 4e0c17c

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)