Donal McBreen
c7cfc074b6
Ensure a minimum limit of 1 for % boot strategy
...
Fixes: https://github.com/basecamp/kamal/issues/681
2024-03-06 15:51:35 +00:00
Matthew Kent
63babecba7
Raise an error when either the filtered hosts or roles are empty.
...
Keeps us confusingly running things on the primary_host when nothing
matches.
2023-11-25 12:47:39 -08:00
Matthew Kent
79baa598fa
Make an effort to match the primary_role from a list of specific roles.
...
This is less surprising than picking the first role and first host.
2023-11-24 17:41:58 -08:00
Matthew Kent
7137850354
Add support for wildcard matches with '*' on roles and hosts.
...
eg:
--roles=*_chicago,*_tokyo
--hosts=app-*
Useful for targeted deploys.
2023-11-13 23:43:23 -08:00
Donal McBreen
0861730e0e
Run interactive commands with the correct host
...
Fixes https://github.com/basecamp/kamal/issues/430
2023-09-18 12:00:36 +01:00
David Heinemeier Hansson
c4a203e648
Rename to Kamal
2023-08-22 08:24:31 -07:00
Josh Soref
b536fcfa43
spelling: percentage
...
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com >
2023-05-29 20:46:34 -04:00
David Heinemeier Hansson
c83b74dcb7
Simplify domain language to just "boot" and unscoped config keys
2023-05-02 13:11:31 +02:00
Kevin McConnell
f055766918
Allow percentage-based rolling deployments
2023-04-14 12:46:14 +01:00
Donal McBreen
fb62f2e6e1
Pull the primary host from the role
...
So commands like this run on a host with the specified role:
```
mrsk app exec -r=console -i "/bin/bash`
mrsk app logs -f -r=workers
```
2023-04-12 13:03:02 +01:00
David Heinemeier Hansson
494e29d672
Fix tests
2023-03-24 14:35:17 +01:00
David Heinemeier Hansson
93423f2f20
Merge branch 'main' into pr/99
...
* main:
Wording
Remove accessory images using tags rather than labels
Update readme to point to ghcr.io/mrsked/mrsk
Validate that all roles have hosts
Commander needn't accumulate configuration
Pull latest image tag, so we can identity it
Default to deploying the config version
Remove unneeded Dockerfile.dind, update Readme
add D-in-D dockerfile, update Readme
2023-03-24 14:26:31 +01:00
Jeremy Daer
1887a6518e
Commander needn't accumulate configuration
...
Commander had version/destination solely to incrementally accumulate CLI
options. Simpler to configure in one shot.
Clarifies responsibility and lets us introduce things like
`abbreviated_version` in one spot - Configuration.
2023-03-23 08:57:32 -07:00
Tobias Bühlmann
7d4dfc4c86
Pass role names for simplicity
2023-03-10 09:18:47 +01:00
Tobias Bühlmann
901484d75d
Filter roles and hosts by their respective counterpart
2023-03-09 18:21:39 +01:00
David Heinemeier Hansson
155384472a
Allow primary host even when a specific role has been set
2023-03-08 18:00:13 +01:00
Adam
2fe01f13df
Commit hash version but not in git
...
Fixes #11
2023-02-05 20:31:14 +01:00
Xavier Noria
539752e9bd
Load with Zeitwerk
2023-02-03 22:45:12 +01:00
David Heinemeier Hansson
31389bc7b5
Global option for designating primary host only
2023-01-20 17:18:32 +01:00
David Heinemeier Hansson
79b5ed179e
Move hosts/roles specification to cli args instead of ENV
2023-01-20 16:57:25 +01:00
David Heinemeier Hansson
4aa96d6578
Switch to a Commander base to allow lazy loading config
2023-01-12 14:58:17 +01:00