ci: fix weird binary checksum logic in push script

This commit is contained in:
5chdn 2018-10-01 16:58:16 +01:00
parent 8eb65a911a
commit ab6172261e
No known key found for this signature in database
GPG Key ID: 1A40871B597F5F80

View File

@ -19,15 +19,13 @@ echo ${filetest[*]}
for DIR in "${filetest[@]}"; for DIR in "${filetest[@]}";
do do
cd $DIR cd $DIR
if [[ $DIR == "*windows*" ]]; if [[ $DIR =~ "*windows*" ]];
then then
WIN=".exe"; WIN=".exe";
else else
WIN=""; WIN="";
fi fi
for binary in $(ls parity.sha3) sha3=$(cat parity.sha3 | awk '{print $1}')
do
sha3=$(cat ${binary/sha3} | awk '{ print $1}' )
case $DIR in case $DIR in
x86_64* ) x86_64* )
DATA="commit=$CI_BUILD_REF&sha3=$sha3&filename=parity$WIN&secret=$RELEASES_SECRET" DATA="commit=$CI_BUILD_REF&sha3=$sha3&filename=parity$WIN&secret=$RELEASES_SECRET"
@ -36,7 +34,6 @@ do
../../scripts/gitlab/safe-curl.sh $DATA "http://update.parity.io:1338/push-build/$CI_BUILD_REF_NAME/$DIR" ../../scripts/gitlab/safe-curl.sh $DATA "http://update.parity.io:1338/push-build/$CI_BUILD_REF_NAME/$DIR"
;; ;;
esac esac
done
cd .. cd ..
done done