Gabriel Adrian Samfira
f52accc47f
Add idempotency when stopping a VM and some tests
...
When deleting a VM, we try to force stop it. If the VM is already stopped,
LXD will return an error. Unfortunately, we can't import the drivers package
from LXD without also pulling in a bunch of linux specific CGO dependencies
which we want to avoid.
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2022-06-28 15:13:02 +00:00
Gabriel Adrian Samfira
b4e9af13d5
Fix tags update
2022-06-24 11:41:38 +00:00
Gabriel Adrian Samfira
846bd672ad
Fix cleanup orphaned github runners
2022-06-24 11:17:34 +00:00
Gabriel Adrian Samfira
98eb594cd6
Remove some blocking code
...
* added 2 new statuses: creating and deleting
* remove wait on create/delete, speeding things up a bit
2022-05-13 23:34:16 +00:00
Gabriel Adrian Samfira
209347e0c6
Fix bug in get instance query
2022-05-11 14:50:19 +00:00
Gabriel Adrian Samfira
dc04bca95c
Retry failed runners
...
* retry adding runners for up to 5 times if they fail.
* various fixes
2022-05-10 12:28:39 +00:00
Gabriel Adrian Samfira
5e0a64f909
Add license headers
2022-05-05 13:25:50 +00:00
Gabriel Adrian Samfira
d9c65872e8
Added more CLI commands and API endpoints
2022-05-05 13:07:06 +00:00
Gabriel Adrian Samfira
f130798f41
Added org pool command
...
* added new command
* fixed a bunch of bugs in orgs
2022-05-04 21:57:08 +00:00
Gabriel Adrian Samfira
3e416d8272
Slight refactor of sql code
2022-05-04 13:15:27 +00:00
Gabriel Adrian Samfira
1dda4a835c
Rename project to garm
...
Project renamed to garm (Github Actions Runner Manager)
2022-05-04 11:44:10 +00:00
Gabriel Adrian Samfira
2bd128af13
Runners now send status messages
2022-05-03 19:49:14 +00:00
Gabriel Adrian Samfira
6bdb8cd78b
return proper error on conflict
2022-05-03 13:20:49 +00:00
Gabriel Adrian Samfira
8ceafff09b
Add more CLI commands
2022-05-03 12:40:59 +00:00
Gabriel Adrian Samfira
475d424f32
Add a basic CLI
2022-05-02 17:55:29 +00:00
Gabriel Adrian Samfira
7ec937a138
Main webhook cases implemented
...
Queued, completed and in_progress workflow_job messages are now
acted upon.
2022-04-29 23:43:37 +00:00
Gabriel Adrian Samfira
a78ad539fe
Auto create runners for pools
2022-04-29 16:08:31 +00:00
Gabriel Adrian Samfira
0314fd3b67
Add some API resources
2022-04-29 14:18:22 +00:00
Gabriel Adrian Samfira
75e06b36b0
Fix GetUser
2022-04-28 16:24:26 +00:00
Gabriel Adrian Samfira
0883fcd5cd
Add some basic auth
2022-04-28 16:13:20 +00:00
Gabriel Adrian Samfira
66b46ae0ab
Implement some more db functions
2022-04-27 16:56:28 +00:00
Gabriel Adrian Samfira
62ba5a5a08
WiP
2022-04-26 20:29:58 +00:00
Gabriel Adrian Samfira
2be5653683
Added some DB logic
2022-04-25 00:21:44 +00:00