cloudbase / garm

GitHub Actions Runner Manager
Apache License 2.0
135 stars 26 forks source link

cannot add github credentials through garm-cli #258

Closed pathcl closed 5 months ago

pathcl commented 5 months ago

Dear folks,

I'm trying to give it a try to garm following it's quickstart here

However:

garm $ wget -q -O - https://github.com/cloudbase/garm/releases/download/v0.1.4/garm-cli-linux-amd64.tgz |  sudo tar xzf - -C /usr/local/bin/

garm $ garm-cli version
v0.1.4

garm $ garm-cli github credentials add   --name gabriel   --description "GitHub PAT for user gabriel"   --auth-type pat   --pat-oauth-token sometoken   --endpoint github.com
Error: unknown command "github" for "garm-cli"
Run 'garm-cli --help' for usage.

garm $ garm-cli github credentials add   --name gabriel_app   --description "Github App with access to repos"   --endpoint github.com   --auth-type app   --app-id 1111   --app-installation-id 1111   --private-key-path /home/pathcl/go/src/github.com/pathcl/garm/private-key-runners.pem
Error: unknown command "github" for "garm-cli"
Run 'garm-cli --help' for usage.

Am I missing something? thanks in advance

gabriel-samfira commented 5 months ago

Hi @pathcl

The README in the main branch is in flux and refers to the code not yet released. I need to do a better job at organizing the docs :sweat_smile: . To set up the latest "stable" release, see the docs in the v0.1.4 tag:

https://github.com/cloudbase/garm/blob/v0.1.4/doc/quickstart.md

But even that has a few typos in it :disappointed: (something I will try to avoid starting with the next release). When following the guide from the above link, please check that the download links point to v0.1.4 instead of v0.1.3.

That being said, if you're willing to try out the latest main branch (should be relatively stable, with a bunch of improvements), that would also be great. There is a simple building from source doc.

Edit: We're trying to move some of the things that are currently in the config, to the DB. This means the github credentials, the URLs and in the future perhaps the provider configs (not sure about that yet)

That is why there is a difference between the main branch and the stable release.

gabriel-samfira commented 5 months ago

If you're building from source, I recommend you have docker or podman installed and to run the:

make build-static

command.

gabriel-samfira commented 5 months ago

going to close this. Feel free to reopen if needed.