mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 08:38:03 +01:00
Fix echo parameter issue (#12775)
Signed-off-by: danfengliu <danfengl@vmware.com>
This commit is contained in:
parent
e1eac2b4d0
commit
5cb239af1e
@ -58,17 +58,10 @@ else
|
|||||||
harbor_target_bucket=$harbor_releases_bucket/$DRONE_BRANCH
|
harbor_target_bucket=$harbor_releases_bucket/$DRONE_BRANCH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export GS_PRIVATE_KEY=$GS_PRIVATE_KEY
|
|
||||||
export TEST_EXPORT_ENV=$TEST_EXPORT_ENV
|
|
||||||
|
|
||||||
echo "1. ===========($TEST_GS_KEY)=========="
|
|
||||||
echo "2. ===========($test_gs_key)=========="
|
|
||||||
echo "3. ===========($TEST_EXPORT_ENV)=========="
|
|
||||||
echo "4. ===========($test_export_env)=========="
|
|
||||||
# GC credentials
|
# GC credentials
|
||||||
keyfile="/root/harbor-ci-logs.key"
|
keyfile="/root/harbor-ci-logs.key"
|
||||||
botofile="/root/.boto"
|
botofile="/root/.boto"
|
||||||
echo -en $GS_PRIVATE_KEY > $keyfile
|
echo -n $GS_PRIVATE_KEY > $keyfile
|
||||||
chmod 400 $keyfile
|
chmod 400 $keyfile
|
||||||
echo "[Credentials]" >> $botofile
|
echo "[Credentials]" >> $botofile
|
||||||
echo "gs_service_key_file = $keyfile" >> $botofile
|
echo "gs_service_key_file = $keyfile" >> $botofile
|
||||||
@ -229,4 +222,3 @@ if [ -f "$keyfile" ]; then
|
|||||||
rm -f $keyfile
|
rm -f $keyfile
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user