Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(just): add garden.io #694

Merged
merged 4 commits into from
Dec 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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