SHA256
1
0
forked from pool/traefik
traefik/fetch-webui.sh

14 lines
352 B
Bash

version=$(grep -oP "(?<=<param name=\"revision\">v).*(?=<\/param>)" _service)
echo "Fetching Traefik WebUI $version"
wget https://github.com/traefik/traefik/releases/download/v${version}/traefik-v${version}.src.tar.gz
tar -xvf traefik-v${version}.src.tar.gz ./webui/static
tar -czvf traefik-${version}.webui.tar.gz webui
rm -rf webui
echo "Done"