aboutsummaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2019-11-16 20:46:04 +0800
committerJeffery To <jeffery.to@gmail.com>2019-11-16 20:46:04 +0800
commit27fdddf8643a289294b8a07820bcbee877cb3ffa (patch)
treeb986404beac7ac4d9cecc5bdc07682333deb069d /.circleci
parentb51d8b252ebb4cbe2cb17b2db5a6a87e6d990e2b (diff)
circleci: Change SDK download host to cdn.openwrt.org
This also switches from rsync to curl to download the SDK archive. Fixes #10358. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 014c09b04..26ad4d9c1 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -4,7 +4,7 @@ jobs:
docker:
- image: docker.io/openwrtorg/packages-cci:v1.0.5
environment:
- - SDK_HOST: "downloads.openwrt.org"
+ - SDK_HOST: "cdn.openwrt.org"
- SDK_PATH: "snapshots/targets/ath79/generic"
- SDK_FILE: "openwrt-sdk-ath79-generic_*.Linux-x86_64.tar.xz"
- BRANCH: "master"
@@ -86,7 +86,9 @@ jobs:
exit 1
fi
fi
- rsync -av "$SDK_HOST::downloads/$SDK_PATH/$SDK_FILE" .
+ PATTERN=$(echo "$SDK_FILE\$" | sed -e 's/\./\\./g' -e 's/\*/.*/g')
+ FILENAME=$(grep -m1 -o "$PATTERN" sha256sums)
+ curl "https://$SDK_HOST/$SDK_PATH/$FILENAME" -sS -o "$FILENAME"
sha256sum -c --ignore-missing sha256sums
- run: