HH-635: avoid runtime GeoIP download (#4)
Docker image / Test (push) Successful in 39s
Docker image / Build and publish (push) Failing after 34s

This commit was merged in pull request #4.
This commit is contained in:
2026-08-24 23:30:26 +08:00
parent d61799d180
commit 5f5b5799e4
4 changed files with 13 additions and 8 deletions
+7 -5
View File
@@ -93,11 +93,13 @@ if [ "$public_bindings" -ne 2 ] || [ "$loopback_bindings" -ne 1 ]; then
fi
docker build --tag "$image" .
docker run --rm --entrypoint /usr/local/lib/ssclash/clash "$image" \
-t -d /usr/local/share/ssclash -f /usr/local/share/ssclash/config.yaml >/dev/null 2>&1 && {
echo "config validation unexpectedly passed without a subscription provider" >&2
exit 1
}
docker run --rm --network none --entrypoint /bin/sh "$image" -c '
set -eu
runtime=$(mktemp -d)
cp /usr/local/share/ssclash/config.yaml "$runtime/config.yaml"
printf "proxies:\n - name: smoke-node\n type: socks5\n server: 127.0.0.1\n port: 9\n" > "$runtime/subscription.yaml"
/usr/local/lib/ssclash/clash -t -d "$runtime" -f "$runtime/config.yaml"
' >/dev/null
provider_dir=$(mktemp -d)
printf '%s\n' \