1359 Commits

Author SHA1 Message Date
026df90ec1 resolve some small issues
All checks were successful
continuous-integration/drone/pr Build is passing
2023-02-08 19:45:34 +01:00
a255c1125d fix goreleaser.yml 2023-02-08 19:45:34 +01:00
db99bfcaa6 extract upgrade requirement checkings 2023-02-08 19:45:34 +01:00
da10940293 pass all errors to the Command function 2023-02-08 19:45:34 +01:00
474cbd904b merge UpgradeApp and UpgradeAll using --all flag 2023-02-08 19:45:34 +01:00
25a562f9a1 update command descriptions 2023-02-08 19:45:34 +01:00
c20447a693 Fix comments 2023-02-08 19:45:34 +01:00
c665d3be0d use SERVER constant for setting the server address to localhost 2023-02-08 19:45:34 +01:00
d1a0145e2f fix dockerClient renaming 2023-02-08 19:45:34 +01:00
d6fe48d1ce fix Makefile alignment 2023-02-08 19:45:34 +01:00
c21432818c add kadabra to goreleaser 2023-02-08 19:45:34 +01:00
dd2af251f9 fix: set updatelabel on upgrade, select latest instead of next release 2023-02-08 19:45:34 +01:00
98db4095a3 add notify command and --major flag 2023-02-08 19:45:34 +01:00
1516d343d8 refactor: replace some functions with general getLabel function 2023-02-08 19:45:34 +01:00
6e2f05bdab evaluate if autoupdates are enabled 2023-02-08 19:45:34 +01:00
79526c0f23 Refactor upgrade function: extract logical parts 2023-02-08 19:45:34 +01:00
8b12e4bc7f change .gitignore and add kadabras main.go 2023-02-08 19:45:34 +01:00
64417736b3 more verbose update info 2023-02-08 19:45:34 +01:00
8aac9e450d pull recipe and lint it 2023-02-08 19:45:34 +01:00
6a55ef26bc updater: read chaos deployment from docker label 2023-02-08 19:45:34 +01:00
d894cb0ee7 PoC auto updater 2023-02-08 19:45:34 +01:00
f28af5e42f
fix: use correctly formatted comments
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-08 11:28:38 +01:00
fdf4854b0c
fix: unbork comments
Some checks failed
continuous-integration/drone/push Build is failing
Was breaking the build but not anymore!
2023-02-08 11:20:30 +01:00
6b9512d09c
build: docker dev builds depend on check too 2023-02-08 11:16:54 +01:00
21a86731d0
build: dont test/build if check fails
Some checks failed
continuous-integration/drone/push Build is failing
Save cycles for small mistakes.
2023-02-08 11:13:20 +01:00
91102e6607
build: not so useful anymore, also broken 2023-02-08 11:12:03 +01:00
fadafda0b8
fix: make test suite work again 2023-02-08 11:11:39 +01:00
c03cf76702
chore: gofmt import statements
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-02-08 10:56:39 +01:00
ebb748b7e7
chore: publish next tag 0.7.0-rc1-beta
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-02-08 10:28:54 +01:00
2b3dbee24c
chore: go mod tidy
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-07 22:20:11 +01:00
a448cfdd0d
fix: revert bogus dependabot changes
Revert "chore(deps): update module github.com/docker/cli to v23"
This reverts commit 5ee6eb53b218995a77dc10d4bd564ba1c0dbf2e8.

Revert "chore(deps): update module github.com/docker/docker to v23"
This reverts commit 7b2880d4259235d532152ee502f16305de84cdb8.
2023-02-07 22:19:28 +01:00
5ee6eb53b2 chore(deps): update module github.com/docker/cli to v23
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-07 21:16:18 +00:00
7b2880d425 chore(deps): update module github.com/docker/docker to v23
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-07 21:16:06 +00:00
928d6f5d7f chore(deps): update module golang.org/x/sys to v0.5.0
Some checks failed
renovate/artifacts Artifact file update failure
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
2023-02-07 08:02:03 +00:00
29fa607190
fix: restrict pulling to specific branch
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-02 21:12:50 +01:00
7c541ffdfa
fix: better error handling in EnsureUpToDate 2023-02-02 21:12:24 +01:00
7ccc4b4c08
fix: woops, remove that print statement
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-02 21:00:31 +01:00
ef4df35995
fix: don't check twice (called in EnsureUpToDate)
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-02 20:59:04 +01:00
71a9155042
fix: specify refs when fetching tags
See coop-cloud/organising#397
2023-02-02 20:58:38 +01:00
2a88491d7c
fix: catch errors here too
Some checks failed
continuous-integration/drone/push Build is failing
See coop-cloud/abra#266
2023-02-02 20:26:19 +01:00
bf79552204
fix: improve permission denied message
Some checks failed
continuous-integration/drone/push Build is failing
2023-02-02 20:07:45 +01:00
0a7fa54759
fix: cant pass client here
Some checks failed
continuous-integration/drone/push Build is failing
Closes coop-cloud/organising#396
2023-02-02 20:06:49 +01:00
7c1a97be72 refactor!: consolidate SSH handling
Some checks failed
continuous-integration/drone/push Build is failing
Closes coop-cloud/organising#389.
Closes coop-cloud/organising#341.
Closes coop-cloud/organising#326.
Closes coop-cloud/organising#380.
Closes coop-cloud/organising#360.
2023-02-02 08:37:14 +00:00
f20fbbc913 chore(deps): update golang docker tag to v1.20
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
2023-02-02 08:02:02 +00:00
76717531bd resolve PR: include the service info in the log message
Some checks failed
continuous-integration/drone/push Build is failing
2023-01-31 16:15:11 +01:00
6774893412 add env ENABLE_AUTO_UPDATE as label to enable/disable the auto update process
Some checks reported errors
continuous-integration/drone/pr Build was killed
2023-01-31 16:12:02 +01:00
ebb86391af add a label to signal that a deploy is a chaos deploy (!265)
Some checks failed
continuous-integration/drone/push Build is failing
Resolves coop-cloud/organising#390 by adding the following label `coop-cloud.${STACK_NAME}.chaos=true` (according to the version label).
This is required for the auto updater coop-cloud/organising#236 (comment)

Co-authored-by: Moritz <moritz.m@local-it.org>
Reviewed-on: coop-cloud/abra#265
2023-01-31 15:06:35 +00:00
50db39424c add a label to signal that a deploy is connected with a recipe (!264)
Some checks failed
continuous-integration/drone/push Build is failing
Resolves coop-cloud/organising#391 by adding the following label `coop-cloud.${STACK_NAME}.recipe=${RECIPE}` (according to the version label).
This is required for the auto updater coop-cloud/organising#236 (comment)

Co-authored-by: Moritz <moritz.m@local-it.org>
Reviewed-on: coop-cloud/abra#264
2023-01-31 14:35:43 +00:00
ca1ea32c46 Expose all env vars to app container. (!263)
Some checks failed
continuous-integration/drone/push Build is failing
Resolves coop-cloud/organising#393 and is required for the auto updater coop-cloud/organising#236 (comment)

Co-authored-by: Moritz <moritz.m@local-it.org>
Reviewed-on: coop-cloud/abra#263
2023-01-31 14:13:43 +00:00
32851d4d99 fix: always fetch all repository tags
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is failing
2023-01-31 11:52:15 +01:00