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>
This commit is contained in:
parent
b51d8b252e
commit
27fdddf864
1 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,7 @@ jobs:
|
||||||
docker:
|
docker:
|
||||||
- image: docker.io/openwrtorg/packages-cci:v1.0.5
|
- image: docker.io/openwrtorg/packages-cci:v1.0.5
|
||||||
environment:
|
environment:
|
||||||
- SDK_HOST: "downloads.openwrt.org"
|
- SDK_HOST: "cdn.openwrt.org"
|
||||||
- SDK_PATH: "snapshots/targets/ath79/generic"
|
- SDK_PATH: "snapshots/targets/ath79/generic"
|
||||||
- SDK_FILE: "openwrt-sdk-ath79-generic_*.Linux-x86_64.tar.xz"
|
- SDK_FILE: "openwrt-sdk-ath79-generic_*.Linux-x86_64.tar.xz"
|
||||||
- BRANCH: "master"
|
- BRANCH: "master"
|
||||||
|
@ -86,7 +86,9 @@ jobs:
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
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
|
sha256sum -c --ignore-missing sha256sums
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
|
|
Loading…
Reference in a new issue