Commit Graph

232 Commits

Author SHA1 Message Date
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 c13f438580
refactor: remove old code 2021-12-27 04:03:53 +01:00
decentral1se 9c281d8608
fix: flags for logging in
continuous-integration/drone/push Build is passing Details
2021-12-27 03:27:05 +01:00
decentral1se c5a74e9f6b
fix: template env files too
continuous-integration/drone/push Build is passing Details
2021-12-26 04:38:34 +01:00
decentral1se cdc08ae95a
fix: much hacking, maybe fixed catalogue generation
continuous-integration/drone/push Build is passing Details
2021-12-26 04:02:40 +01:00
decentral1se 3f35510507
fix: runtime caching for catalogue generation 2021-12-26 04:01:02 +01:00
decentral1se b0834925a3
fix: log in correctly
See #139.
2021-12-26 03:44:29 +01:00
decentral1se 17340a79da
refactor: more local var 2021-12-26 00:14:48 +01:00
decentral1se 779c810521
refactor: less quotes, less verbose 2021-12-26 00:14:32 +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
continuous-integration/drone/push Build is passing Details
2021-12-25 02:03:09 +01:00
decentral1se 14400d4ed8
fix: sync recipes from remotes
continuous-integration/drone/push Build is passing Details
2021-12-24 16:06:29 +01:00
decentral1se dddf84d92b
fix: avoid default value for idf
We could default to ~/.ssh/id_rsa but if that doesn't exist, then we'll
just be confusing people in the logs. Best is to just rely on the
ssh-agent which overrides this anyway. We will document this.

See coop-cloud/organising#277
2021-12-24 15:39:44 +01:00
decentral1se fefb042716
fix: shorter timeout on deploy
continuous-integration/drone/push Build is passing Details
2021-12-24 02:26:02 +01:00
decentral1se ab8db8df64
feat: deploy --no-converge-checks & finish app errors 2021-12-24 02:23:46 +01:00
decentral1se e839f100df
fix: move that back, still wrong but less wrong 2021-12-24 01:32:42 +01:00
decentral1se 41a757b7ed
fix: only show when success is for sure 2021-12-24 00:44:50 +01:00
decentral1se 4b4298caf1
fix: better wording 2021-12-24 00:44:49 +01:00
decentral1se 8e8c241fdf
refactor: less quotes 2021-12-24 00:44:49 +01:00
decentral1se 9b8ff1ddcd
fix: get branch is now more robust 2021-12-24 00:44:44 +01:00
decentral1se fc29ca6fce
refactor: less quotes 2021-12-24 00:25:45 +01:00
decentral1se 014d32112e
fix: ensure tags & commits are pushed
continuous-integration/drone/push Build is passing Details
2021-12-23 02:24:43 +01:00
decentral1se a7894cbda9
fix: better explanation 2021-12-23 02:10:57 +01:00
decentral1se 0362928840
fix!: parse ttl correctly 2021-12-23 01:41:12 +01:00
decentral1se 7a5aa1b005
test: make them work again
continuous-integration/drone/push Build is passing Details
2021-12-23 01:06:56 +01:00
decentral1se a07e71f7df
fix: grand ssh, provisioning, perms refactor
continuous-integration/drone/push Build is failing Details
See coop-cloud/organising#280.
See coop-cloud/organising#273.
2021-12-22 20:08:15 +01:00
decentral1se ec7223146b
docs: better timeout error 2021-12-21 23:48:32 +01:00
decentral1se fa45264ea0
refactor: the grand recipe release refactor 2021-12-21 19:25:44 +01:00
decentral1se 2b1cc9f6dd
docs: less quotes, more clarity on init 2021-12-21 02:28:14 +01:00
decentral1se fc3742212c
fix: more reliable syncing 2021-12-21 01:48:37 +01:00
decentral1se fccbd7c7d7
chore: style lines 2021-12-21 01:48:21 +01:00
decentral1se ae9e66c319
docs: less quotes, different quotes 2021-12-20 01:05:51 +01:00
decentral1se 8d499c0810
fix: find local only apps 2021-12-20 00:50:09 +01:00
decentral1se 0a903f041f
refactor: less quotes 2021-12-20 00:49:36 +01:00
decentral1se bf82bc9c7f
feat: add dryflag, implement push for catalogue generate 2021-12-19 23:59:40 +01:00
decentral1se 5113db1612
refactor: centralise git commit machinery 2021-12-19 23:51:03 +01:00
decentral1se 88d4984248
docs: wording 2021-12-19 23:29:05 +01:00
decentral1se 4c66e44b3a
fix: use new recipes.json path 2021-12-19 23:17:46 +01:00
decentral1se 033bad3d10
fix: handle empty image meta 2021-12-19 23:14:43 +01:00
decentral1se a750344653
refactor: better wording 2021-12-19 23:14:29 +01:00
decentral1se f5caf5587a
refactor: fix log style and add recipe context 2021-12-19 23:08:03 +01:00
decentral1se fdc9e8b5fd
refactor: improved log messages and less quotes 2021-12-19 23:02:58 +01:00
decentral1se 75edcabb23
fix: show progress on meta reading 2021-12-19 22:57:38 +01:00
decentral1se fa0a63c11d
refactor: ensure type, drop comment 2021-12-19 22:45:08 +01:00
decentral1se 3d3eefb2fe
fix: bail out definitely on that error
See coop-cloud/organising#278.
2021-12-19 22:44:19 +01:00
decentral1se b8e2d1de67
refactor: move function into web package 2021-12-19 15:57:00 +01:00
decentral1se 3b7a8e6498
docs: add missing docstrings 2021-12-19 15:56:59 +01:00
decentral1se 8215bb455b
fix: warn if secrets still exist
continuous-integration/drone/push Build is passing Details
2021-12-13 12:29:26 +01:00
decentral1se d087a60e09
Revert "fix: dont throw away changes"
continuous-integration/drone/push Build is passing Details
This reverts commit dd0f328a65.

Part of coop-cloud/organising#282.
2021-12-12 02:04:13 +01:00
decentral1se 48e16c414c
fix: use correct error format
continuous-integration/drone/push Build is passing Details
2021-12-12 01:56:43 +01:00
decentral1se f3e55e5023
fix: support registry login details
continuous-integration/drone/push Build is passing Details
2021-12-12 01:52:28 +01:00
decentral1se ae6adace50
refactor: autocomplete package
continuous-integration/drone/push Build is passing Details
2021-12-12 00:17:39 +01:00
decentral1se 32dcddb631
fix: select containers if we find multiple 2021-12-12 00:04:37 +01:00
decentral1se 3dbd343600
fix: dont double append root path
continuous-integration/drone/push Build is passing Details
2021-12-11 20:24:38 +01:00
decentral1se 8393f4b134
fix: log discovered paths 2021-12-11 20:24:29 +01:00
decentral1se 8e56607cc9
fix: use default 2021-12-11 20:13:55 +01:00
decentral1se 85a543afac
fix: maybe more robust gitignore checks
continuous-integration/drone/push Build is passing Details
2021-12-11 20:11:59 +01:00
decentral1se 665396b679
fix: join path correctly
continuous-integration/drone/push Build is passing Details
2021-12-11 20:01:30 +01:00
decentral1se 870c561fee
Revert "Revert "fix: include ignored files""
This reverts commit 9be78bc5fa.

Attempting to fix this once again.
2021-12-11 19:53:35 +01:00
decentral1se 3fb43ffa2c
Revert "fix: match exact on filtering" [ci skip]
This reverts commit 2bc2f8630b.

This breaks other stuff. Reverting!
2021-12-09 14:12:16 +01:00
decentral1se 2bc2f8630b
fix: match exact on filtering
continuous-integration/drone/push Build is passing Details
2021-12-06 01:26:04 +01:00
decentral1se 2db5378418
fix: dont add .git dirs
Closes coop-cloud/organising#276.
2021-12-05 01:30:23 +01:00
decentral1se 7d8f3f1fab
fix: less loose permissions, less +x
Closes coop-cloud/organising#283.
2021-12-05 01:18:31 +01:00
knoflook 9be78bc5fa
Revert "fix: include ignored files"
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
This reverts commit aea5cc69c3.
2021-12-03 11:39:56 +01:00
decentral1se 962f566228
fix: go on with missing tag
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#264.
2021-11-26 21:34:21 +01:00
decentral1se 748d607ddc
fix: better converge output
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#263.
2021-11-26 21:24:15 +01:00
decentral1se 4641a942d8
chore: drop comment [ci skip] 2021-11-26 21:02:29 +01:00
3wc 759a00eeb3 fix: less fussy catalogue generation
continuous-integration/drone/push Build is passing Details
2021-11-24 13:48:17 +02:00
decentral1se dd0f328a65
fix: dont throw away changes
continuous-integration/drone/push Build is passing Details
Part of coop-cloud/organising#226.
2021-11-22 21:11:59 +01:00
decentral1se aea5cc69c3
fix: include ignored files
Part of coop-cloud/organising#226.
2021-11-22 21:11:59 +01:00
3wc d0a30f6b7b refactor: code style / error handling improvements
continuous-integration/drone/push Build is passing Details
2021-11-22 20:37:12 +02:00
3wc 9d62fff074 feat: recipe generate: load category and features 2021-11-22 20:37:12 +02:00
decentral1se 711c4e5ee8
fix: warn on invalid envs for catalogue generation
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#256.
2021-11-22 18:38:59 +01:00
decentral1se cb32e88cde
fix: support retryable http clients
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#257.
2021-11-22 18:28:18 +01:00
decentral1se a18729bf98
fix: ensure changes are check for
continuous-integration/drone/push Build is passing Details
Part of coop-cloud/organising#255.
2021-11-22 17:49:31 +01:00
decentral1se fdf4fc6737
fix: ensure validation takes place
continuous-integration/drone/push Build is passing Details
Part of coop-cloud/organising#243 (comment).
2021-11-21 15:00:04 +01:00
decentral1se 304b70639f
fix: only check catalogue once
continuous-integration/drone/push Build is passing Details
2021-11-19 15:50:29 +01:00
decentral1se fc51cf7775
docs: improve wording [ci skip] 2021-11-19 15:29:54 +01:00
decentral1se e589709cb0
fix: attempt to include IdentityFile if available
continuous-integration/drone/push Build is passing Details
This is part of trying to debug:

    coop-cloud/organising#250

And also part of:

    coop-cloud/docs.coopcloud.tech#27

Where I now try to specify the same logic as `ssh -i <my-key-path>` in
the underlying connection logic. This should help with being more
explicit about what key is being used via the SSH config file.
2021-11-18 21:16:10 +01:00
decentral1se 56c3e070f5
fix: log what keys are loaded with the ssh-agent
continuous-integration/drone/push Build is passing Details
Closes coop-cloud/organising#249.
2021-11-18 20:04:57 +01:00
decentral1se 1f6e4fa4a3
fix: ensure to init/commit the new recipe repo
continuous-integration/drone/push Build is passing Details
Part of coop-cloud/organising#247.
2021-11-15 18:55:13 +01:00
decentral1se 4a245c3e02
fix: ensure .git repo exists
Part of coop-cloud/organising#247.
2021-11-15 18:55:13 +01:00
decentral1se 915083b426
fix: time out on 60 sec + of converge checks
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#246.
2021-11-14 23:15:35 +01:00
decentral1se 486a1717e7
fix: dont attempt to clone is local repo is there
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#247.
2021-11-14 22:54:55 +01:00
decentral1se 9122c0a9b8
fix: ensure domain/server resolve to same ipv4
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#227 (comment).
2021-11-14 22:47:18 +01:00
decentral1se 85ff04202f
fix: ensure ipv4 is present for app deploys
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#227.
2021-11-13 23:04:58 +01:00
decentral1se f78a04109c
fix: clarify when deploy done [ci skip] 2021-11-10 09:15:52 +01:00
decentral1se b67ad02f87
feat: rudimentary deploy status checking
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#209.
2021-11-10 09:06:55 +01:00
decentral1se cd361237e7
Revert "Revert "test: remove broken tests for client""
continuous-integration/drone/push Build is passing Details
This reverts commit 59031595ea.

Argh, reverted this by accident, heres another one!
2021-11-09 18:25:28 +01:00
decentral1se 59031595ea
Revert "test: remove broken tests for client"
This reverts commit 17a5f1529a.
2021-11-09 17:58:31 +01:00
decentral1se 6f26b51f3e
fix: only check host keys on requested hosts
continuous-integration/drone/push Build is passing Details
See coop-cloud/organising#242.
2021-11-09 17:44:13 +01:00
knoflook 17a5f1529a
test: remove broken tests for client
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build was killed Details
2021-11-09 13:03:33 +01:00
decentral1se edb427a7ae
feat: implement host key checking
continuous-integration/drone/pr Build is failing Details
continuous-integration/drone/push Build is failing Details
Closes coop-cloud/organising#237.
2021-11-08 15:37:23 +01:00
decentral1se 2b9395be1a
feat: make sync use wizard mode
continuous-integration/drone/push Build is passing Details
Some bugs squashed while testing this extensively.
2021-11-06 23:40:22 +01:00