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

drenv addons: Use latest release for all tools for tools installed from github release #1785

Open
nirs opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels
test Testing related issue

Comments

@nirs
Copy link
Member

nirs commented Jan 29, 2025

Example from kubectl-gather:

tag="$(curl -fsSL https://api.github.com/repos/nirs/kubectl-gather/releases/latest | jq -r .tag_name)"
os="$(uname | tr '[:upper:]' '[:lower:]')"
machine="$(uname -m)"
if [ "$machine" = "aarch64" ]; then machine="arm64"; fi
if [ "$machine" = "x86_64" ]; then machine="amd64"; fi
curl -L -o kubectl-gather https://github.com/nirs/kubectl-gather/releases/download/$tag/kubectl-gather-$tag-$os-$machine
sudo install kubectl-gather /usr/local/bin
rm kubectl-gather

With this we don't need to change the instructions again, except for "tested with version x.y.z" note.

If we have to use specific version we can make tag constant.

@nirs nirs added the test Testing related issue label Jan 29, 2025
@nirs nirs changed the title Use latest release for all tools for tools installed from github release drenv addons: Use latest release for all tools for tools installed from github release Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Testing related issue
Projects
None yet
Development

No branches or pull requests

2 participants