From 055e024aeee1809d231f4da000c986ee68066ae1 Mon Sep 17 00:00:00 2001 From: Fritz Larco Date: Tue, 26 Mar 2024 07:04:33 -0400 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 7d538ef..99c23e6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,8 +9,10 @@ export SLING_LOADED_AT_COLUMN=true if [ "$INPUT_VERSION" != "latest" ]; then # download sling version echo "Downloading version $INPUT_VERSION" - wget -q https://ocral.nyc3.cdn.digitaloceanspaces.com/slingdata.io/dist/$INPUT_VERSION/sling-linux - mv sling-linux /usr/local/bin/sling + wget -q https://github.com/slingdata-io/sling-cli/releases/download/v$INPUT_VERSION/sling_linux_amd64.tar.gz + tar -xf sling_linux_amd64.tar.gz + rm -f /usr/local/bin/sling + mv sling /usr/local/bin/sling chmod 755 /usr/local/bin/sling fi @@ -18,4 +20,4 @@ chmod -R 777 $GITHUB_WORKSPACE cd $GITHUB_WORKSPACE # run sling command -sh -c "sling $INPUT_COMMAND" \ No newline at end of file +sh -c "sling $INPUT_COMMAND"