Commit Graph

77 Commits

Author SHA1 Message Date
decentral1se 312b93e794
fix: no gitops on recipe for "app new"
Closes coop-cloud/organising#408
2023-02-15 00:49:22 +01:00
decentral1se 992e675921
refactor: use passed down conf to decide 2023-02-15 00:35:33 +01:00
decentral1se e4b4084dfd
fix: stream logs without hitting git.coopcloud.tech
Medium-sized options refactor in here too!

See coop-cloud/organising#292.
2023-02-13 16:46:43 +01:00
moritz e76ed771df feat: kadabra, the app auto-updater (!268)
coop-cloud/organising#236

Autoupdater `kadabra` is ready for testing.
It should run on the server, check for available minor/patch updates and automatically upgrade the apps.

Co-authored-by: Moritz <moritz.m@local-it.org>
Reviewed-on: coop-cloud/abra#268
2023-02-08 18:53:04 +00:00
decentral1se 29fa607190
fix: restrict pulling to specific branch 2023-02-02 21:12:50 +01:00
decentral1se 7c541ffdfa
fix: better error handling in EnsureUpToDate 2023-02-02 21:12:24 +01:00
decentral1se 7ccc4b4c08
fix: woops, remove that print statement 2023-02-02 21:00:31 +01:00
decentral1se ef4df35995
fix: don't check twice (called in EnsureUpToDate) 2023-02-02 20:59:04 +01:00
decentral1se 71a9155042
fix: specify refs when fetching tags
See coop-cloud/organising#397
2023-02-02 20:58:38 +01:00
decentral1se 2a88491d7c
fix: catch errors here too
See coop-cloud/abra#266
2023-02-02 20:26:19 +01:00
Moritz 32851d4d99 fix: always fetch all repository tags 2023-01-31 11:52:15 +01:00
decentral1se 903aac9d7a
feat: recipe fetch command
Also may have rooted out another go-git cloning bug 🙄

Closes coop-cloud/organising#365
2023-01-23 09:26:53 +01:00
decentral1se 32de2ee5de
fix: ensure catalogue is clean/up-to-date
Closes coop-cloud/organising#367
2023-01-22 17:52:36 +01:00
decentral1se 6fe5aed408
fix!: remove digest handling
Closes coop-cloud/organising#379
2023-01-22 08:54:13 +01:00
3wc 4f055096e9 chore: fix Drone build, ignore auto-recipes-catalogue-json 2023-01-15 18:16:53 -08:00
3wc 1403eac72c fix: parse "Status" field during `catalogue generate` 2023-01-15 17:10:45 -08:00
moritz e788ac21f6 fix: keep abra working if recipe catalogue is offline (!235)
Co-authored-by: Moritz <moritz.m@local-it.org>
Reviewed-on: coop-cloud/abra#235
2022-12-13 14:42:45 +00:00
Franz Heinzmann (Frando) 8458e61d17
fix: branch checking logic
See https://github.com/go-git/go-git/issues/518 for why this is needed.
2022-08-11 17:49:22 +02:00
decentral1se 49f79dbd45
fix!: new catalogue URL 2022-05-03 17:08:52 +02:00
decentral1se cbd924060f
fix: better local changes message 2022-04-19 10:29:05 +02:00
decentral1se b295958c17 fix: handle all container registries
See coop-cloud/organising#258

This fixes also how we read the digest of the image. I think it was
wrong before. Some registries restrict reading this info and we now just
default to "unknown" for that case.

This also appears to bring a wave of new dependencies due to the generic
handling logic of containers/... package. The abra binary is now 1mb
larger.

The catalogue generation is now slower unfortunately. But it is more
robust.

The generic logic looks in ~/.docker/config.json for log in details, so
you don't have to pass those in manually on the CLI anymore. We just
read those defaults. You can "docker login" to get credentials setup in
that file. Since most folks won't generate the catalogue, this seems
fine for now.
2022-02-21 08:46:30 +00:00
decentral1se 2fbdcfb958
refactor: try the meta for default branch too
Sometimes the Branch(...) call gets confused with state in the
repository. Its more robust to use the default value we get from gitea.

See coop-cloud/organising#299.
2022-02-20 18:07:49 +01:00
decentral1se 09ac74d205
fix: check out default branch from tags
Also fix error handling to match function signatures.
2022-02-18 11:17:43 +01:00
decentral1se 6b2a0011af
fix: remove dupe logging on catalogue reading [ci skip] 2022-02-14 17:37:25 +01:00
decentral1se 46fca7cfa7
docs: less ambig wording [ci skip] 2022-02-14 17:35:42 +01:00
decentral1se 0557284461 fix: use new repo name 2022-02-09 08:58:51 +00:00
decentral1se 58e98f490d
refactor!: type -> recipes 2022-01-27 12:06:32 +01:00
decentral1se f9a2c1d58f
refactor: put StripTagMeta into formatter package
Avoid circular import.
2022-01-19 10:40:14 +01:00
decentral1se 7733637767
fix: ensure catalogue cloned for catalogue reliant commands 2022-01-18 11:19:33 +01:00
decentral1se d7cf11b876
fix: further fixes for gracefully handling missing tag
Follows 1b37d2d5f5.
2022-01-05 17:58:15 +01:00
decentral1se 74dfb12fd6
refactor: centralise tag meta stripping 2022-01-05 17:32:33 +01:00
decentral1se 8992050409
docs: dont metion git explicitly in user messages 2022-01-01 17:23:04 +01:00
decentral1se 62441acf03
refactor: use SmallSHA 2021-12-30 00:41:21 +01:00
decentral1se f5d2d3adf6
refactor: formatter gets own package 2021-12-28 01:24:23 +01:00
decentral1se 0aa37fcee8
refactor!: simplifying publish logic 2021-12-27 19:56:27 +01:00
decentral1se eb1b6be4c5
fix: auto-config ssh urls and push to them 2021-12-27 18:06:56 +01:00
decentral1se b98397144a
fix: wording 2021-12-27 18:06:46 +01:00
decentral1se 4c186678b8
fix: clone https url by default
Catalogue package had to be merged into the recipe package due to too
many circular import errors. Also, use https url for cloning, assume
folks don't have ssh setup by default (the whole reason for the
refactor).
2021-12-27 16:45:56 +01:00
decentral1se cdc08ae95a
fix: much hacking, maybe fixed catalogue generation 2021-12-26 04:02:40 +01:00
decentral1se 17340a79da
refactor: more local var 2021-12-26 00:14:48 +01:00
decentral1se 9a1cf258a5
fix: check published version properly
Resulted in a refactor to a new lint package.
2021-12-26 00:00:19 +01:00
decentral1se ba8138079f
fix: use one function for up-to-date checks 2021-12-25 23:45:52 +01:00
decentral1se 8735a8f0ea
feat: lint before deploy/upgrade/rollback
See coop-cloud/organising#254.
2021-12-25 23:35:45 +01:00
decentral1se a84a5bc320
feat: more robust linting
See coop-cloud/organising#254.
2021-12-25 23:22:50 +01:00
decentral1se e2c3bc35c3
fix: handle missing label 2021-12-25 17:02:47 +01:00
decentral1se 6937bfbb0d
fix: if no remotes, skip on 2021-12-25 16:56:21 +01:00
decentral1se 4283f130a2
refactor: apps -> recipes 2021-12-25 14:04:07 +01:00
decentral1se 3b5354b2a5
refactor: less quotes 2021-12-25 02:03:09 +01:00
decentral1se 14400d4ed8
fix: sync recipes from remotes 2021-12-24 16:06:29 +01:00
decentral1se 4b4298caf1
fix: better wording 2021-12-24 00:44:49 +01:00