Skip to content

Commit 6980348

Browse files
author
Keerthan Mala
committed
feat(swift): Add support for swift storage
1 parent 923c9f8 commit 6980348

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rootfs/bin/get_object

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ "$BUILDER_STORAGE" == "minio" ]; then
77
mkdir -p /app/objectstore/minio/
88
echo "git" > /app/objectstore/minio/builder-bucket
99
export BUCKET_FILE=/app/objectstore/minio/builder-bucket
10-
elif [ "$BUILDER_STORAGE" == "azure" ]; then
10+
elif [ "$BUILDER_STORAGE" == "azure" ] || [ "$BUILDER_STORAGE" == "swift" ] ; then
1111
export CONTAINER_FILE=/var/run/secrets/deis/objectstore/creds/builder-container
1212
fi
1313
objstorage --storage-type="$BUILDER_STORAGE" download "$TAR_PATH" "$GET_PATH"

rootfs/bin/put_object

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PROC_PATH=/tmp/build/Procfile
66
export BUCKET_FILE=/var/run/secrets/deis/objectstore/creds/builder-bucket
77
if [ "$BUILDER_STORAGE" == "minio" ]; then
88
export BUCKET_FILE=/app/objectstore/minio/builder-bucket
9-
elif [ "$BUILDER_STORAGE" == "azure" ]; then
9+
elif [ "$BUILDER_STORAGE" == "azure" ] || [ "$BUILDER_STORAGE" == "azure" ] ; then
1010
export CONTAINER_FILE=/var/run/secrets/deis/objectstore/creds/builder-container
1111
fi
1212
objstorage --storage-type="$BUILDER_STORAGE" upload "$SLUG_PATH" "${PUT_PATH}/slug.tgz"

0 commit comments

Comments
 (0)