wifictld/.ci/download_sdk.sh

8 lines
342 B
Bash

mkdir -p $CI_PROJECT_DIR/tmp
cd $CI_PROJECT_DIR/tmp
curl "https://$SDK_HOST/$SDK_PATH/sha256sums" -sS -o sha256sums
curl "https://$SDK_HOST/$SDK_PATH/sha256sums.asc" -sS -o sha256sums.asc
gpg --with-fingerprint --verify sha256sums.asc sha256sums
rsync -av "$SDK_HOST::downloads/$SDK_PATH/$SDK_FILE" .
sha256sum -c --ignore-missing sha256sums