[MINOR] Fix release script for onetime uploading of gpgkeys (#1949)
This commit is contained in:
committed by
GitHub
parent
824f23bcb8
commit
6fa371a79c
@@ -61,34 +61,43 @@ if [[ $confirmation != "y" ]]; then
|
|||||||
else
|
else
|
||||||
echo "Please input your name: "
|
echo "Please input your name: "
|
||||||
read name
|
read name
|
||||||
|
echo "Please input you Apache account creds for checking out ${ROOT_SVN_URL} and adding your key to KEYS file"
|
||||||
|
echo "username: "
|
||||||
|
read apache_username
|
||||||
|
echo "password: "
|
||||||
|
read passowrd
|
||||||
echo "======Starting updating KEYS file in dev repo===="
|
echo "======Starting updating KEYS file in dev repo===="
|
||||||
if [[ -d ${LOCAL_SVN_DIR} ]]; then
|
if [[ -d ${LOCAL_SVN_DIR} ]]; then
|
||||||
rm -rf ${LOCAL_SVN_DIR}
|
rm -rf ${LOCAL_SVN_DIR}
|
||||||
fi
|
fi
|
||||||
mkdir ${LOCAL_SVN_DIR}
|
mkdir ${LOCAL_SVN_DIR}
|
||||||
cd ${LOCAL_SVN_DIR}
|
cd ${LOCAL_SVN_DIR}
|
||||||
svn co ${ROOT_SVN_URL}/${DEV_REPO}/${HUDI_REPO}
|
svn --username=${apache_username} --password=${passowrd} co ${ROOT_SVN_URL}/${DEV_REPO}/${HUDI_REPO}
|
||||||
cd ${HUDI_REPO}
|
cd ${HUDI_REPO}
|
||||||
(gpg --list-sigs ${name} && gpg --armor --export ${name}) >> KEYS
|
(gpg --list-sigs ${name} && gpg --armor --export ${name}) >> KEYS
|
||||||
svn status
|
svn status
|
||||||
echo "Please review all changes. Do you confirm to commit? [y|N]"
|
echo "Please review all changes. Do you confirm to commit? [y|N]"
|
||||||
read commit_confirmation
|
read commit_confirmation
|
||||||
if [[ $commit_confirmation = "y" ]]; then
|
if [[ $commit_confirmation = "y" ]]; then
|
||||||
svn commit --no-auth-cache KEYS
|
svn --username=${apache_username} --password=${passowrd} commit --no-auth-cache KEYS
|
||||||
else
|
else
|
||||||
echo "Not commit new changes into ${ROOT_SVN_URL}/${DEV_REPO}/${HUDI_REPO}${DEV_REPO}/KEYS"
|
echo "Not commit new changes into ${ROOT_SVN_URL}/${DEV_REPO}/${HUDI_REPO}${DEV_REPO}/KEYS"
|
||||||
fi
|
fi
|
||||||
|
cd ~
|
||||||
cd ~/${LOCAL_SVN_DIR}
|
if [[ -d ${LOCAL_SVN_DIR} ]]; then
|
||||||
|
rm -rf ${LOCAL_SVN_DIR}
|
||||||
|
fi
|
||||||
|
mkdir ${LOCAL_SVN_DIR}
|
||||||
|
cd ${LOCAL_SVN_DIR}
|
||||||
echo "===Starting updating KEYS file in release repo==="
|
echo "===Starting updating KEYS file in release repo==="
|
||||||
svn co ${ROOT_SVN_URL}/${RELEASE_REPO}/${HUDI_REPO}
|
svn --username=${apache_username} --password=${passowrd} co ${ROOT_SVN_URL}/${RELEASE_REPO}/${HUDI_REPO}
|
||||||
cd ${HUDI_REPO}
|
cd ${HUDI_REPO}
|
||||||
(gpg --list-sigs ${name} && gpg --armor --export ${name}) >> KEYS
|
(gpg --list-sigs ${name} && gpg --armor --export ${name}) >> KEYS
|
||||||
svn status
|
svn status
|
||||||
echo "Please review all changes. Do you confirm to commit? [y|N]"
|
echo "Please review all changes. Do you confirm to commit? [y|N]"
|
||||||
read commit_confirmation
|
read commit_confirmation
|
||||||
if [[ $commit_confirmation = "y" ]]; then
|
if [[ $commit_confirmation = "y" ]]; then
|
||||||
svn commit --no-auth-cache KEYS
|
svn --username=${apache_username} --password=${passowrd} commit --no-auth-cache KEYS
|
||||||
else
|
else
|
||||||
echo "Not commit new changes into ${ROOT_SVN_URL}/${DEV_REPO}/${HUDI_REPO}${RELEASE_REPO}/KEYS"
|
echo "Not commit new changes into ${ROOT_SVN_URL}/${DEV_REPO}/${HUDI_REPO}${RELEASE_REPO}/KEYS"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user