diff --git a/just/custom.just b/just/custom.just index 3008f0e2d67..16b305b7814 100644 --- a/just/custom.just +++ b/just/custom.just @@ -149,6 +149,30 @@ jetbrains-toolbox: echo "Launching JetBrains Toolbox" ./jetbrains-toolbox-"${BUILD_VERSION}"/jetbrains-toolbox +# Install garden.io, the Cloud Native DevOps automation platform | https://garden.io +garden: + #!/usr/bin/env bash + if ! command -v garden &> /dev/null; then + ASSET_URL=$(curl -s https://api.github.com/repos/garden-io/garden/releases/latest | \ + jq -r '.assets[] | select(.browser_download_url | test("linux-amd64.tar.gz$")) | .browser_download_url') + GARDEN_DIR="${HOME}/.garden/bin" + TMP_DIR=$(mktemp -d) + curl -sSL "$ASSET_URL" | tar -xz -C "$TMP_DIR" + mkdir -p "$GARDEN_DIR" + mv "$TMP_DIR"/linux-amd64/garden "$GARDEN_DIR" + rm -rf "$TMP_DIR" + + echo "" + echo "🌺🌻 Garden has been successfully installed πŸŒ·πŸ’" + echo "" + echo "Add the Garden CLI to your path by adding the following to your .bashrc/.zshrc:" + echo "" + echo " export PATH=\$PATH:\$HOME/.garden/bin" + echo "" + echo "Head over to our documentation for next steps: https://docs.garden.io" + echo "" + fi + # Install nix and Devbox nix-devbox: echo 'Setting phasers to kill. Installing nix.'