2024-05-01 08:36:34 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
. ./.env
|
|
|
|
|
|
|
|
DOCKER_API='https://hub.docker.com/v2/namespaces/searxng/repositories/searxng'
|
|
|
|
REPO='https://github.com/searxng/searxng/raw'
|
|
|
|
|
|
|
|
new_tag="$(curl -L "$DOCKER_API/tags" | jq -r '.results[3].name')"
|
|
|
|
new_commit="$(grep -Eo '\w+$' <<< "$new_tag")"
|
|
|
|
|
2024-05-15 21:31:25 +00:00
|
|
|
for f in config/*; do
|
|
|
|
$EDITOR -d -c "wincmd l" -- "$REPO/$new_commit/searx/${f##*/}" "$f"
|
|
|
|
done
|
2024-05-01 08:36:34 +00:00
|
|
|
|
|
|
|
sed -i "/^IMAGEAPP=/s/:.*/:$new_tag/" .env
|