Skip to content

Commit

Permalink
feat(just): add garden.io (ublue-os#694)
Browse files Browse the repository at this point in the history
Co-authored-by: Jorge O. Castro <[email protected]>
  • Loading branch information
worldofgeese and castrojo authored Dec 1, 2023
1 parent ae873da commit 7523952
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions just/custom.just
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand Down

0 comments on commit 7523952

Please sign in to comment.