Update images/actions/lua/Dockerfile
Some checks failed
Build Runner Base / build_act (push) Successful in 2m36s
Build Runner Lua / build_lua (5.1) (push) Failing after 2m27s
Build Runner Lua / build_lua (5.2) (push) Failing after 2m27s
Build Runner Lua / build_lua (5.4) (push) Failing after 2m24s
Build Runner Lua / build_lua (5.3) (push) Failing after 2m27s
Build Runner JS / build_lua (latest) (push) Successful in 2m42s
Build Runner Php / build_php (8.3) (push) Successful in 2m36s
Build Runner Php / build_php (8.2) (push) Successful in 2m39s
Build Runner csharp / build_csharp (6) (push) Successful in 3m12s
Build Runner Java / build_java (21) (push) Successful in 3m16s
Build Runner csharp / build_csharp (8) (push) Successful in 3m25s
Build Runner Java / build_java (8) (push) Successful in 3m25s
Build Runner Godot / build_godot (4.2.2) (push) Successful in 3m39s
Build Runner Java / build_java (17) (push) Successful in 3m38s

This commit is contained in:
Snoweuph 2024-07-03 18:45:44 +00:00
parent c0dee6b57b
commit 6951bb7c99

View file

@ -2,11 +2,12 @@ FROM git.euph.dev/actions/runner-basic:latest
ARG PACKAGE_VERSION
RUN release_info=$(curl -s https://api.github.com/repos/LuaLS/lua-language-server/releases/latest) \
&& download_url=$(echo "$release_info" | jq -r '.assets[] | select(.name | endswith("linux-x64.tar.gz")) | .browser_download_url') \
&& download_url=$(echo "$release_info" | jq -r '.assets[] | select(.name | endswith("linux-x64-musl.tar.gz")) | .browser_download_url') \
&& curl -LO "$download_url" \
&& tar_file=$(basename "$download_url") \
&& tar -zxvf "$tar_file" bin/lua-language-server \
&& sudo mv ./bin/lua-language-server /usr/local/bin/lua-language-server \
&& rm -rf bin "$tar_file"
&& sudo mkdir /opt/lua-language-server
&& tar -xf "$tar_file" -C /opt/lua-language-server \
&& rm -rf "$tar_file"
ENV PATH="/opt/lua-language-server/bin:${PATH}"
RUN sudo apk add --no-cache "lua$PACKAGE_VERSION" "luarocks$PACKAGE_VERSION" stylua luacheck