From 3684103a11d6c9ba8812824deb631a220f8c4905 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Wed, 3 Jul 2024 01:11:50 +0000 Subject: [PATCH] images/actions/lua/Dockerfile aktualisiert --- images/actions/lua/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/images/actions/lua/Dockerfile b/images/actions/lua/Dockerfile index 41e76bc..22de547 100644 --- a/images/actions/lua/Dockerfile +++ b/images/actions/lua/Dockerfile @@ -1,4 +1,12 @@ FROM git.euph.dev/actions/runner-basic:latest ARG PACKAGE_VERSION -RUN sudo apk add --no-cache "lua$PACKAGE_VERSION" "luarocks$PACKAGE_VERSION" stylua luacheck lua-inspect lua-language-server \ No newline at end of file +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') \ + && curl -LO "$download_url" \ + && tar_file=$(basename "$download_url") \ + && tar -zxvf "$tar_file" bin/lua-language-server \ + && mv ./bin/lua-language-server /usr/local/bin/lua-language-server \ + && rm -rf bin "$tar_file" + +RUN sudo apk add --no-cache "lua$PACKAGE_VERSION" "luarocks$PACKAGE_VERSION" stylua luacheck lua-language-server \ No newline at end of file