Skip to content

Commit 4697c96

Browse files
authored
upload: Separate upload basedir of amd64 and arm64 ISOs (#774)
1 parent 57cdebb commit 4697c96

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

upload.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ BUCKET="$5"
1010

1111
source "$CONFIG_FILE"
1212

13+
BASEDIR="$CHANNEL"
14+
if [ "$ARCH" != "amd64" ]; then
15+
BASEDIR="$CHANNEL-$ARCH"
16+
fi
17+
1318
echo -e "
1419
#----------------------#
1520
# INSTALL DEPENDENCIES #
@@ -30,9 +35,9 @@ ISOPATHS="$(find builds -name "*.iso")"
3035
while IFS= read -r ISOPATH; do
3136
SHAPATH="${ISOPATH%.*}.sha256.txt"
3237
MD5PATH="${ISOPATH%.*}.md5.txt"
33-
ISO="$CHANNEL/$(basename "$ISOPATH")"
34-
SHASUM="$CHANNEL/$(basename "$SHAPATH")"
35-
MD5="$CHANNEL/$(basename "$MD5PATH")"
38+
ISO="$BASEDIR/$(basename "$ISOPATH")"
39+
SHASUM="$BASEDIR/$(basename "$SHAPATH")"
40+
MD5="$BASEDIR/$(basename "$MD5PATH")"
3641
echo "uploading $ISO..."
3742
python3 upload.py "$KEY" "$SECRET" "$ENDPOINT" "$BUCKET" "$ISOPATH" "$ISO" || exit 1
3843
echo "uploading $SHASUM..."

0 commit comments

Comments
 (0)