Commit graph

1195 commits

Author SHA1 Message Date
Gabriel
c19bf2f9f8
Merge pull request #416 from ChristopherHX/optional-forge-type-for-gitea
Create Repo / Org make --forge-type optional
2025-05-29 20:04:51 +03:00
Christopher Homberger
efd725ea94 Create Repo / Org make --forge-type optional
* This makes gitea garm usage unnessary complex

Signed-off-by: Christopher Homberger <christopher.homberger@web.de>
2025-05-29 18:36:25 +02:00
dependabot[bot]
914f7fbd49
Bump gorm.io/gorm from 1.26.1 to 1.30.0
Bumps [gorm.io/gorm](https://github.com/go-gorm/gorm) from 1.26.1 to 1.30.0.
- [Release notes](https://github.com/go-gorm/gorm/releases)
- [Commits](https://github.com/go-gorm/gorm/compare/v1.26.1...v1.30.0)

---
updated-dependencies:
- dependency-name: gorm.io/gorm
  dependency-version: 1.30.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 06:15:56 +00:00
Gabriel
18ef27bb91
Merge pull request #412 from gabriel-samfira/allow-deleting-default-ep
Make the default github endpoint mutable
2025-05-25 01:32:23 +03:00
Gabriel Adrian Samfira
87055f23da Make the default github endpoint mutable
This change allows users to remove the default github endpoint
if no credentials are set on it.

A new protection is added on URLs of any endpoint that prevents their
update if the endpoint has credentials set.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-24 22:26:01 +00:00
Gabriel
b5bd373061
Merge pull request #411 from gabriel-samfira/add-logo
Experiment with a logo
2025-05-24 23:35:06 +03:00
Gabriel Adrian Samfira
ae69e8c473 Experiment with a logo
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-24 20:13:05 +00:00
Gabriel
451e7c4556
Merge pull request #408 from gabriel-samfira/fix-add-entity-event
Fix AddInstanceEvent and expose events
2025-05-22 22:24:36 +03:00
Gabriel Adrian Samfira
9921a7bfc8 Fix AddInstanceEvent and expose events
* We were passing the wrong type to GORM for events
* We now expose entity events in the API and CLI

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-22 19:19:24 +00:00
Gabriel
ed8e11e244
Merge pull request #405 from gabriel-samfira/ensure-token
Ensure that admin token exists
2025-05-22 00:38:47 +03:00
Gabriel Adrian Samfira
7e576dc631 Ensure that admin token exists
Make sure that the admin info is populated when calling GenerateJitRunnerConfig.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-21 21:29:43 +00:00
Gabriel
d8cb1c5acd
Merge pull request #404 from gabriel-samfira/fix-cli
Avoid nil pointer dereference in CLI
2025-05-21 23:58:56 +03:00
Gabriel Adrian Samfira
9660b28019 Avoid nil pointer dereference in CLI
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-21 20:58:21 +00:00
Gabriel
f5c3363249
Merge pull request #403 from cloudbase/gabriel-samfira-patch-1
Update Dockerfile
2025-05-21 23:46:43 +03:00
Gabriel
4e157fc4cc
Update Dockerfile 2025-05-21 23:46:29 +03:00
Gabriel
ac0caa2ed9
Merge pull request #402 from gabriel-samfira/fix-parse-error
Fix potential nil pointer dereference
2025-05-21 22:50:44 +03:00
Gabriel Adrian Samfira
cfe707e522 Fix potential nil pointer dereference
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-21 19:45:23 +00:00
Gabriel
8c16ee92b3
Merge pull request #400 from kaspar030/patch-1
Fix some typos in scalesets.md
2025-05-21 17:45:25 +03:00
Kaspar Schleiser
8e8d7fd364
Fix some typos in scalesets.md 2025-05-21 16:39:22 +02:00
Gabriel
7646ff4429
Merge pull request #399 from cloudbase/gabriel-samfira-patch-1
Update gitea.md
2025-05-21 13:52:45 +03:00
Gabriel
93768a2796
Update gitea.md 2025-05-21 13:52:15 +03:00
Gabriel
65aa92f517
Merge pull request #398 from gabriel-samfira/add-docker-compose-example
Add examples for setting up GARM with Gitea
2025-05-21 13:28:48 +03:00
Gabriel Adrian Samfira
1c758d010a Add examples for setting up GARM with Gitea
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-21 10:27:59 +00:00
Gabriel
c85aea2d26
Merge pull request #396 from cloudbase/fix-schedule
Use default values for ref and push to project
2025-05-21 11:10:53 +03:00
Gabriel
f95bfee0d9
Merge pull request #397 from cloudbase/dependabot/go_modules/golang.org/x/mod-0.24.0
Bump golang.org/x/mod from 0.17.0 to 0.24.0
2025-05-21 09:43:07 +03:00
dependabot[bot]
4cf1468907
Bump golang.org/x/mod from 0.17.0 to 0.24.0
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.17.0 to 0.24.0.
- [Commits](https://github.com/golang/mod/compare/v0.17.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/mod
  dependency-version: 0.24.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-21 06:30:29 +00:00
Gabriel Adrian Samfira
c5c35f1324 Use default values for ref and push to project
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-21 05:03:07 +00:00
Gabriel
0068119c34
Merge pull request #395 from gabriel-samfira/add-cli-to-docker-image
Add CLI to docker image
2025-05-21 00:15:54 +03:00
Gabriel Adrian Samfira
269c6064e7 Add CLI to docker image
This change adds the GARM cli to the docker image.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-20 21:15:08 +00:00
Gabriel
b7798404f8
Merge pull request #394 from cloudbase/update-build-and-push
Allow for nightly builds
2025-05-20 23:20:55 +03:00
Gabriel Adrian Samfira
bdcc817def Enable daily cron
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-20 20:10:08 +00:00
Gabriel Adrian Samfira
b41318c948 Allow for nightly builds
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-20 17:00:59 +00:00
Gabriel
dee6bf7c9a
Merge pull request #393 from gabriel-samfira/add-gitea
Add gitea
2025-05-20 19:26:46 +03:00
Gabriel Adrian Samfira
1fc72ab5c8 Add more tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-20 16:12:45 +00:00
Gabriel Adrian Samfira
1fe09548bc Add more tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-20 13:52:16 +00:00
Gabriel Adrian Samfira
b4268e6bab Fix tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-20 09:52:13 +00:00
Gabriel Adrian Samfira
6994c8ce05 Add copyright header
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-20 09:43:29 +00:00
Gabriel Adrian Samfira
f0753eeb22 Add more tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-20 09:22:55 +00:00
Gabriel Adrian Samfira
b2d5609352 Add some tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-19 19:45:45 +00:00
Gabriel Adrian Samfira
bb798a288a Properly set webhook secret
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-16 23:58:39 +00:00
Gabriel Adrian Samfira
6a168ba813 Enable orgs
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-16 23:02:01 +00:00
Gabriel Adrian Samfira
5dfcfc542e Implement webhooks install for gitea
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-16 20:24:11 +00:00
Gabriel Adrian Samfira
08511e2e7f Account for gitea credentials in cache and watchers
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-15 09:15:44 +00:00
Gabriel Adrian Samfira
b4e92a69c9 Fix existing tests
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-14 23:20:18 +00:00
Gabriel Adrian Samfira
0270117e8d Fix lint errors
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-14 22:01:11 +00:00
Gabriel Adrian Samfira
39ac658527 Add forge type to repo list
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-14 21:33:46 +00:00
Gabriel Adrian Samfira
3fe4cef884 Cleanup unused code
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-14 21:14:31 +00:00
Gabriel Adrian Samfira
f66b651b59 Fix findEndpointForJob
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-14 21:09:02 +00:00
Gabriel Adrian Samfira
56be5eb698 Do not load scalesets and runners in parallel
Both functions read and write to the same map. We should switch
to sync.Map

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-14 15:36:53 +00:00
Gabriel Adrian Samfira
8538a4ae8a Make sure websocket hub exits properly
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2025-05-14 15:22:27 +00:00