From 932d18870d27aba049afaa4bc410579f8c106431 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Thu, 9 May 2024 21:57:01 +0000 Subject: [PATCH] images/actions/godot/Dockerfile aktualisiert --- images/actions/godot/Dockerfile | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/images/actions/godot/Dockerfile b/images/actions/godot/Dockerfile index 9eb67c7..e013ed4 100644 --- a/images/actions/godot/Dockerfile +++ b/images/actions/godot/Dockerfile @@ -2,4 +2,23 @@ FROM git.euph.dev/actions/runner-csharp:latest ARG PACKAGE_VERSION -RUN sudo apk add --no-cache "something$PACKAGE_VERSION" \ No newline at end of file +RUN if [[ "$PACKAGE_VERSION" == "latest" ]] ; then \ + wget $( \ + curl -s https://api.github.com/repos/godotengine/godot/releases/tags/$PACKAGE_VERSION-stable \ + | grep "browser_download_url.*Godot_v.*-stable_mono_linux_x86_64.zip" \ + | cut -d '"' -f 4 - \ + | head -n 1 + ) -O Godot.zip + else \ + wget $( \ + curl -s https://api.github.com/repos/godotengine/godot/releases/latest \ + | grep "browser_download_url.*Godot_v.*-stable_mono_linux_x86_64.zip" \ + | cut -d '"' -f 4 + ) -O Godot.zip + fi \ + && unzip Godot.zip -d /usr/local/bin \ + && rm Godot.zip \ + && mv /usr/local/bin/Godot_v*-stable_mono_linux.x86_64 /usr/local/bin/godot \ + && mv /usr/local/bin/GodotSharp /usr/local/bin/godot + +#RUN sudo apk add --no-cache "something$PACKAGE_VERSION" \ No newline at end of file