Skip to content
Snippets Groups Projects
Unverified Commit d252307c authored by yubiuser's avatar yubiuser
Browse files

Print FTL version also when building the image


Signed-off-by: default avataryubiuser <github@yubiuser.dev>
parent 0020492a
Branches
Tags
No related merge requests found
...@@ -96,7 +96,8 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then FTLARCH=amd64; \ ...@@ -96,7 +96,8 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then FTLARCH=amd64; \
&& if [ "${FTL_BRANCH}" = "master" ]; then URL="https://github.com/pi-hole/ftl/releases/latest/download"; else URL="https://ftl.pi-hole.net/${FTL_BRANCH}"; fi \ && if [ "${FTL_BRANCH}" = "master" ]; then URL="https://github.com/pi-hole/ftl/releases/latest/download"; else URL="https://ftl.pi-hole.net/${FTL_BRANCH}"; fi \
&& curl -sSL "${URL}/pihole-FTL-${FTLARCH}" -o /usr/bin/pihole-FTL \ && curl -sSL "${URL}/pihole-FTL-${FTLARCH}" -o /usr/bin/pihole-FTL \
&& chmod +x /usr/bin/pihole-FTL \ && chmod +x /usr/bin/pihole-FTL \
&& readelf -h /usr/bin/pihole-FTL || (echo "Error with downloaded FTL binary" && exit 1) && readelf -h /usr/bin/pihole-FTL || (echo "Error with downloaded FTL binary" && exit 1) \
&& /usr/bin/pihole-FTL -vv
FROM base AS local-ftl-install FROM base AS local-ftl-install
# pihole-FTL must be built from source and copied to the src directory first! # pihole-FTL must be built from source and copied to the src directory first!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment