Commit Graph

306 Commits

Author SHA1 Message Date
decentral1se 037e08a41a
Bump version to match latest release
Woops.
2021-04-18 00:05:51 +02:00
decentral1se c19c4db897
Choose latest commit message for new tags
Closes https://git.autonomic.zone/coop-cloud/abra/issues/144.
2021-04-17 23:54:06 +02:00
3wc 208b11af0a Only check for pw(q)gen if we're tryna use them
Ref #147
2021-04-17 12:31:19 +02:00
decentral1se 35f553ae5a
Release patch fix 2021-04-07 21:00:08 +02:00
decentral1se 8e6b620e8c
Release latest version 2021-04-07 20:54:16 +02:00
3wc 523fc2850c Make --no-prompt more consistent 2021-04-07 20:47:11 +02:00
decentral1se 2ccef8948d
Support abra-hetzner
Closes https://git.autonomic.zone/coop-cloud/abra/issues/88.
2021-04-07 20:09:00 +02:00
decentral1se 08de1e0676
Fix plugin require logic 2021-04-07 19:54:48 +02:00
decentral1se b2e66a01fc
Require JQ for abra-hetzner 2021-04-07 19:51:24 +02:00
3wc 23f8cfc8dd Download apps.json for `app new` 2021-04-07 18:32:04 +02:00
decentral1se 10bcb68c9d
Appease shellcheck 2021-04-07 13:18:55 +02:00
decentral1se d936080393
Allow skipping domain polling
Closes https://git.autonomic.zone/coop-cloud/abra/issues/140.
2021-04-07 13:15:26 +02:00
decentral1se 809ee6e68b
Always inform we're polling the domain
Closes https://git.autonomic.zone/coop-cloud/abra/issues/141.
2021-04-07 13:14:53 +02:00
3wc 9815230eba Handle missing app versions during `.. new`
Closes #138
2021-04-07 01:28:33 +02:00
3wc 8cb556275f Make sure to get apps.json for `recipe` subcommands
Closes #136
2021-04-05 16:11:50 +02:00
3wc 028c7dbde5 Tweak `recipe .. release` docs 2021-04-05 13:26:49 +02:00
3wc 103a4941c7 Reliability improvements to `recipe .. release` 2021-04-05 13:26:49 +02:00
3wc a261114bbc Add --force to `recipe .. release` 2021-04-05 13:26:49 +02:00
3wc e2640fac08 Add `.. recipe .. release` subcommand
Closes #134
2021-04-05 13:26:49 +02:00
3wc 33280f90b3 Rejig rollback, add <version> to deploy
Ref #132
2021-04-05 13:26:49 +02:00
3wc 8b60ece3d4 Add "recipe" commands, rejig vendoring, vendor jq 2021-04-05 13:26:49 +02:00
3wc 47efae4e6c Keep a fresh copy of apps.json
Ref #132
2021-04-05 13:26:49 +02:00
3wc 05cf00d272 Clean-up; require_binary, comments, shellcheck 2021-04-05 00:07:03 +02:00
3wc c3e3f0a1f8 Use version info from compose file(s) not abra.sh
Ref #131
2021-04-04 14:29:29 +02:00
3wc df4e5045be Add --skip-version-check option to `app ... deploy` 2021-04-04 14:28:00 +02:00
decentral1se 701784930b
Reinstate --force for the deploy command
Follow up to 07e3678c78.

Also remove bad docs for commands without `--force` now.
2021-03-26 00:40:23 +01:00
decentral1se 9836d27052
Add abra doctor command
Closes https://git.autonomic.zone/coop-cloud/abra/issues/119.
2021-03-26 00:26:34 +01:00
decentral1se e361b493b1
Recognise undeployed apps when undeploying
Closes https://git.autonomic.zone/coop-cloud/abra/issues/123.
2021-03-26 00:01:07 +01:00
decentral1se b28460cf84
Add wait and domain check logic
Closes https://git.autonomic.zone/coop-cloud/abra/issues/116.
Also see https://git.autonomic.zone/coop-cloud/abra/issues/113.
2021-03-25 23:56:16 +01:00
decentral1se 07e3678c78
Replace all --force usage with --no-prompt
Closes https://git.autonomic.zone/coop-cloud/abra/issues/118.
2021-03-25 22:47:59 +01:00
decentral1se c315ebe319
Fix branch handling (again, again)
Closes https://git.autonomic.zone/coop-cloud/abra/issues/122.
2021-03-25 22:13:08 +01:00
3wc 36dd6b5eff Simplify `require_foo` commands 2021-03-20 23:17:05 +02:00
decentral1se 2f1f51bad1
Check for docker version
Closes https://git.autonomic.zone/coop-cloud/abra/issues/15.
2021-03-20 22:00:02 +01:00
decentral1se 7e31184bd6
Add add version check command
Closes https://git.autonomic.zone/coop-cloud/abra/issues/108.
2021-03-20 21:35:28 +01:00
decentral1se 49226f1640
Change warning to reflect version check scenarioj 2021-03-20 21:35:13 +01:00
decentral1se 4251c32b30
Re-word new app language to emphasise config editing
See https://git.autonomic.zone/coop-cloud/abra/issues/111#issuecomment-4407.
2021-03-20 21:24:38 +01:00
decentral1se ece5385a38
Merge branch 'fix-subcommand-select' into main
Fix merge conflict in docopt generation + change log entry.
2021-03-20 21:18:34 +01:00
3wc 35d5df14aa Fix subcommand selection..
..by sorting the list of subcommand function names in descending order
of how many '_' are in them. This means that `abra app <app> version`
will always be matched before `abra version`.

Ref #108
2021-03-20 19:07:02 +02:00
decentral1se 1c437b99eb
Fix status checking 2021-03-18 20:10:42 +01:00
decentral1se f382765f29
Show correct status for missing contexts
Closes https://git.autonomic.zone/coop-cloud/abra/issues/99.
2021-03-18 19:45:30 +01:00
decentral1se f5951add54
Fix variables in print statement 2021-03-18 19:09:34 +01:00
decentral1se 005323ff3c
Add debug for SSH connect on init
Closes https://git.autonomic.zone/coop-cloud/abra/issues/109.
2021-03-18 18:55:04 +01:00
decentral1se 390e918417
Add missing `it` 2021-03-18 18:54:53 +01:00
decentral1se 87b71cb9d4
Show connection details on `abra server ls`
Closes https://git.autonomic.zone/coop-cloud/abra/issues/110.
2021-03-18 18:46:33 +01:00
decentral1se 6e61c08b2c
Handle undeployed state for version output summary
Closes https://git.autonomic.zone/coop-cloud/abra/issues/104.
2021-03-18 17:20:54 +01:00
decentral1se 54b6acc46c
Fix output for stack name 2021-03-18 17:19:43 +01:00
decentral1se e5e98d536a
Add --force for undeploy 2021-03-18 17:18:35 +01:00
decentral1se 8df91de3af
Add --force to deploy command
Closes https://git.autonomic.zone/coop-cloud/abra/issues/105.
2021-03-18 14:12:18 +01:00
decentral1se 7557966c98
Add debug logging for STACK_NAME 2021-03-17 14:12:59 +01:00
decentral1se d68444be9e
Mark release 2021-03-17 12:54:29 +01:00
3wc 8b4141670c Include git digest in dev `version` output
Re: #100
2021-03-16 12:54:42 +02:00
decentral1se 23c852125d
Listen to shellcheck and do things 2021-03-16 10:13:15 +01:00
decentral1se b04bfea1c7
Use local marker and scan services only once 2021-03-16 08:38:11 +01:00
decentral1se bc0ef0d6fc
Fix deployments when versions are missing 2021-03-16 07:32:31 +01:00
decentral1se 58b13d7528
Use app type naming and use yellow 2021-03-16 06:22:32 +01:00
decentral1se b0fca49ecb
Generalise top level deploy output 2021-03-16 06:19:52 +01:00
decentral1se 79dacf557e
Implement edge-case handling for versioning 2021-03-16 06:19:37 +01:00
decentral1se d6caf03301
Spacing for readability 2021-03-16 05:58:08 +01:00
decentral1se 9b90712d28
Look up image name and show it also 2021-03-16 05:57:01 +01:00
decentral1se 1dd3fe6fcd
Use COMPOSE var here 2021-03-16 05:56:52 +01:00
decentral1se 3b59adfe34
Vendor yq program 2021-03-16 05:47:13 +01:00
decentral1se 00c8a988e1
Fix parsing of stack_name/service concatenation 2021-03-16 05:04:05 +01:00
decentral1se 524fb6a44c
Use STACK_NAME instead of Gitea 2021-03-15 18:56:26 +01:00
decentral1se e99bedf9e4
WIP version output summary which handles services
See https://git.autonomic.zone/coop-cloud/organising/issues/47.
2021-03-15 18:30:37 +01:00
decentral1se bcc15ecdb0
Support dev upgrades on the CLI also 2021-03-15 17:03:01 +01:00
3wc 8cb6617a0f Automatically truncate suggested app name
Ref #83
2021-03-14 03:33:33 +02:00
3wc 1a649c56cb Docs & comments 2021-03-14 03:33:22 +02:00
3wc fd655274f8 Bomb out with Bash < 4
Ref #96
2021-03-14 03:24:13 +02:00
decentral1se 946d1a068d
Drop current version handling logic for deploy
New logic coming soon.

See https://git.autonomic.zone/coop-cloud/organising/issues/47#issuecomment-4231.
2021-03-13 20:23:53 +01:00
3wc e8651976ca Only load apps once, exciting 2× speed increase 2021-03-13 20:15:54 +02:00
3wc af52ba1fec Clean-up 🧹 2021-03-12 13:13:17 +02:00
3wc 08281891a1 Add --type filter to `abra <app> ls` 2021-03-12 13:10:35 +02:00
decentral1se 5bce042922
First steps to enable abra-hetzner
See https://git.autonomic.zone/coop-cloud/abra/issues/88.
2021-03-10 23:28:59 +01:00
decentral1se 3276c9fe47
Always choose the default IPv4 address for init'ing
Closes https://git.autonomic.zone/coop-cloud/abra/issues/91.
2021-03-10 22:23:38 +01:00
Luke Murphy 040374e781
List volumes/secrets when removing 2021-03-05 12:53:21 +01:00
Luke Murphy 621c8cd5c4
Fix volume/secret deletion logic
- Fix escaping of quotes
- Dont delete things unless options are passed
2021-03-04 19:21:38 +01:00
Luke Murphy 7434b67c34
Fix parens and ignore quote warning 2021-03-04 16:59:36 +01:00
Luke Murphy 17306a753b
Support volume and secret removal 2021-03-04 16:55:24 +01:00
Luke Murphy 2e3f4cabd8
Warn if unable to find version 2021-03-04 16:40:35 +01:00
Luke Murphy eec49d6dd1
Guard against length errors in app names
Closes https://git.autonomic.zone/coop-cloud/abra/issues/83.
2021-03-04 16:25:21 +01:00
Luke Murphy d6195ad6d7
Undercore `-` values in the domain too 2021-03-04 16:19:55 +01:00
Luke Murphy fd04c5a6e9
Support branch selection for app repo clones
Closes https://git.autonomic.zone/coop-cloud/abra/issues/80.
2021-03-04 16:01:56 +01:00
Luke Murphy 1c9d7282b2
Revert "Sort commands listing"
This reverts commit 99ab5bf369.

Woops, they cannot be sorted this way. Ignore me.
2021-03-04 15:50:27 +01:00
Luke Murphy dd9c485c66
Fix wording and wrap 2021-03-04 15:48:53 +01:00
Luke Murphy 99ab5bf369
Sort commands listing 2021-03-04 15:38:09 +01:00
Luke Murphy 25a0afed65
Fix indentation and, document local options only 2021-03-04 15:35:18 +01:00
Luke Murphy 65ce949e03
Bail out if versions match
Closes https://git.autonomic.zone/coop-cloud/abra/issues/87.
2021-03-04 13:20:58 +01:00
Luke Murphy 5931cbd791
Only throw away error but keep stdout 2021-03-04 13:20:45 +01:00
Luke Murphy 0bbff91722
Add service rollback
Closes https://git.autonomic.zone/coop-cloud/abra/issues/76.
2021-03-04 13:10:51 +01:00
Luke Murphy 7f5e753dfd
Re-factor version output logic and fix bug
It was showing empty strings for deployed versions it could not find.
Now, it will not change messages to output if it can not detect the
versions deployed (containers dont have the tag).
2021-03-04 13:10:00 +01:00
Luke Murphy d3776f4424
Warn on secret storage after generation
Closes https://git.autonomic.zone/coop-cloud/abra/issues/75.
2021-03-03 17:20:24 +01:00
Luke Murphy 544c4e86ba
Capture output for version checking
Closes https://git.autonomic.zone/coop-cloud/abra/issues/85.
2021-03-03 16:56:47 +01:00
Luke Murphy 516309b478
Show command to run 2021-03-03 16:54:01 +01:00
Luke Murphy dfd7e29a30
Give spacing to blocks 2021-03-03 16:51:25 +01:00
Luke Murphy bb30fa28da
Fix wording 2021-03-03 16:50:59 +01:00
Luke Murphy 152dfe9349
Support basic version checking
Closes https://git.autonomic.zone/coop-cloud/abra/issues/82.
2021-03-02 13:06:56 +01:00
Luke Murphy 98e674b8e8
Add version and digest showing
See https://git.autonomic.zone/coop-cloud/abra/issues/82.
2021-03-02 12:04:25 +01:00
Luke Murphy 5bc702bf96
Propagate new version around 2021-03-01 11:44:58 +01:00
3wc e5b2a426f0 Add shared backup helpers 2021-02-24 17:03:28 +02:00
3wc 29b22fe162 Display subcommand help with -h/--help
Closes #78
2021-02-11 15:02:37 +02:00