0
0

Updated SearXNG

This commit is contained in:
Opnxng 2023-11-15 01:18:48 +08:00
parent 2843c7bc88
commit 177a1561c5

View File

@ -112,6 +112,7 @@ jobs:
cd temp cd temp
git clone ${REMOTE_REPO} . git clone ${REMOTE_REPO} .
UPSTREAM_COMMIT=$(git ls-remote ${SEARXNG_REPO} | awk '{print $1}' | head -1) UPSTREAM_COMMIT=$(git ls-remote ${SEARXNG_REPO} | awk '{print $1}' | head -1)
UPSTREAM_COMMIT=7b1951aa97f05bf679d36574a16c8a85995cc9c1
sed -i "s/UPSTREAM_COMMIT=.*/UPSTREAM_COMMIT=$UPSTREAM_COMMIT/" Dockerfile sed -i "s/UPSTREAM_COMMIT=.*/UPSTREAM_COMMIT=$UPSTREAM_COMMIT/" Dockerfile
sed -i 's/FROM registry.paulgo.dev\/infra\/paulgoio\/searxng:base/FROM git.opnxng.com\/opnxng\/searxng:base/' Dockerfile # use git.opnxng.com/opnxng/searxng:base sed -i 's/FROM registry.paulgo.dev\/infra\/paulgoio\/searxng:base/FROM git.opnxng.com\/opnxng\/searxng:base/' Dockerfile # use git.opnxng.com/opnxng/searxng:base
docker-buildx build \ docker-buildx build \
@ -138,4 +139,4 @@ jobs:
STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1) STORED_COMMIT=$(curl -H "Authorization: Bearer ${{ secrets.NT }}" -s "https://nt.opnxng.com/${REPO_NAME}/raw?poll=1" | tail -n 1)
echo "STORED_COMMIT=${STORED_COMMIT}" >> "$GITHUB_ENV" echo "STORED_COMMIT=${STORED_COMMIT}" >> "$GITHUB_ENV"
exit 1 exit 1
fi fi