Donal McBreen
36f4e90a76
Update to kamal-proxy 0.8.6
...
Includes a fix for locking the proxy while draining
2025-03-07 11:33:17 +00:00
Donal McBreen
62dfa45ee6
Bump version for 2.5.3
2025-02-27 10:27:27 +00:00
Donal McBreen
6f29d4e78b
Bump version for 2.5.2
2025-02-07 15:27:30 +00:00
Donal McBreen
28be0300b9
Bump version for 2.5.1
2025-02-06 13:54:46 +00:00
Donal McBreen
fdf7e6927a
Only check for docker when logging in locally
...
If we are skipping a local registry login, we don't need docker
installed locally.
Fixes: https://github.com/basecamp/kamal/issues/1400
2025-02-06 11:12:56 +00:00
Donal McBreen
45197e46f6
Bump version for 2.5.0
2025-02-04 11:19:44 +00:00
Donal McBreen
6b40a64b9a
Merge pull request #1398 from basecamp/kamal-2.5-doc-changes
...
Doc changes for 2.5
2025-02-04 11:18:40 +00:00
Donal McBreen
9af2425fbd
Doc changes for 2.5
...
Sync up the accessory.yml file with the latest changes in the
kamal-site repo.
2025-02-04 11:05:25 +00:00
Donal McBreen
8775d202bd
Prep for 2.5
...
- Reset KAMAL on alias command, rather than relying on checking
"invoked_via_subcommand"
- Validate the accessories roles when loading the configuration
not later on when trying to access them
2025-02-04 09:08:57 +00:00
Donal McBreen
bae7c56e74
Merge pull request #1392 from neiljohari/feature/allow-omitting-aws-account
...
Allow omitting AWS account parameter while fetching secrets
2025-02-04 08:45:06 +00:00
Neil Johari
07d05ad58a
Run rubocop auto correct
2025-02-03 09:44:39 -08:00
Neil Johari
e69611efb6
Add final newline
2025-02-03 08:56:06 -08:00
Donal McBreen
04a96aa5be
Allow accessory roles with no hosts
...
Only raise an exception if the role is not found, not it it has no
hosts.
2025-02-03 16:44:01 +00:00
Donal McBreen
cd73cea850
Add pre and post app boot hooks
...
Add two new hooks pre-app-boot and post-app-boot. They are analagous
to the pre/post proxy reboot hooks.
If the boot strategy deploys in groups, then the hooks are called once
per group of hosts and `KAMAL_HOSTS` contains a comma delimited list of
the hosts in that group.
If all hosts are deployed to at once, then they are called once with
`KAMAL_HOSTS` containing all the hosts.
It is possible to have pauses between groups of hosts in the boot config,
where this is the case the pause happens after the post-app-boot hook is
called.
2025-02-03 15:54:45 +00:00
Neil Johari
ff3538f81d
Undo accidental line deletion
2025-02-02 23:54:53 -08:00
Neil Johari
c7d1711e30
Remove unnecessary var
2025-02-02 23:46:09 -08:00
Neil Johari
d710b5a22b
Allow ommitting AWS account while fetching secrets
2025-02-02 23:43:51 -08:00
Mike Dalessio
214d4fd321
The build dev command warns about untracked and uncommitted files
...
so there's a complete picture of what is being packaged that's not in git.
2025-02-01 22:19:05 -05:00
Mike Dalessio
2127f1708a
feat: Introduce a build dev command
...
which will build a "dirty" image using the working directory.
This command is different from `build push` in two important ways:
- the image tags will have a suffix of `-dirty`
- the export action is "docker", pushing to the local docker image store
The command also supports the `--output` option just added to `build
push` to override that default.
This command is intended to allow developers to quickly iterate on a
docker image built from their local working directory while avoiding
any confusion with a pristine image built from a git clone, and
keeping those images on the local dev system by default.
2025-01-20 18:52:21 -05:00
Mike Dalessio
24e4347c45
feat: Introduce a build push --output option
...
which controls where the build result is exported.
The default value is "registry" to reflect the current behavior of
`build push`.
Any value provided to this option will be passed to the `buildx build`
command as a `--output=type=<VALUE>` flag.
For example, the following command will push to the local docker image
store:
kamal build push --output=docker
squash
2025-01-20 18:37:15 -05:00
Donal McBreen
5f04e4266b
Merge pull request #1369 from basecamp/dont-cleanup-traefik-on-reboot
...
Don't cleanup traefik on reboot
2025-01-20 15:23:49 +00:00
Donal McBreen
35a29cc538
Merge pull request #1331 from guillaumebriday/patch-1
...
Fixing log command on role in example
2025-01-20 15:23:31 +00:00
Donal McBreen
f187080db5
Don't cleanup traefik on reboot
...
This was designed to help with upgrading from Kamal 1 to Kamal 2
but it causes issues if you have a traefik container you don't want
to be shut down.
2025-01-20 15:06:06 +00:00
Donal McBreen
080fa49fdf
Merge pull request #1368 from basecamp/error-free-ruby-version-comment
...
Don't read a file in sample deploy.yml
2025-01-20 14:38:34 +00:00
Donal McBreen
34050f1036
Don't read a file in sample deploy.yml
...
The ERB runs first so it does matter if it in a comment. If the file
doesn't exist (e.g. if not using Ruby, you'll get an error).
We'll change the example to match the Rails deploy.yml template won't
have than problem.
2025-01-20 14:26:43 +00:00
Donal McBreen
459c7366ec
Merge pull request #1367 from brettabamonte/fix_lastpass_err_msg_typo
...
Fix LastPass error message typo
2025-01-20 11:43:33 +00:00
brettabamonte
4d67a1671a
Change LassPass to LastPass
2025-01-18 19:11:34 -05:00
Donal McBreen
2c9bba3f88
Merge branch 'main' into feature/docker-build-cloud
2025-01-17 15:49:28 +00:00
Donal McBreen
a388937de8
Merge pull request #1363 from basecamp/check-for-docker-locally
...
Check for docker locally before registry login
2025-01-17 15:45:18 +00:00
Donal McBreen
eee9d67691
Merge pull request #1319 from ShPakvel/fix_bug_in_role_validate_servers
...
Fix bugs for role validate servers
2025-01-17 15:19:25 +00:00
Donal McBreen
5bd9bc8576
Merge pull request #1320 from ShPakvel/add_optional_accessory_registry
...
[Feature] Registry for accessory
2025-01-17 15:18:50 +00:00
Donal McBreen
dc9a95db2c
Check for docker locally before registry login
...
We were checking before `kamal build push`, but not `kamal registry login`.
Since `kamal registry login` is called first by a deploy we don't
get the nice error message.
2025-01-17 15:17:22 +00:00
Donal McBreen
1db44c402c
Boot accessories after pre-deploy hook
...
That allows you to set proxy config in the hook before booting
the proxy.
2025-01-17 15:04:16 +00:00
Matthew Jones
b420b2613d
Adds support for Docker Build Cloud
2025-01-17 07:14:31 -07:00
Donal McBreen
4ffa772201
Don't boot proxy twice when setting up
2025-01-17 13:04:37 +00:00
Donal McBreen
e081414849
Merge pull request #1308 from pokonski/proxy-accessory-fix
...
Boot proxy on server setup
2025-01-17 13:04:07 +00:00
Donal McBreen
2bd716ece4
Drop the TestOptionalAccount adapter
...
It's included in the gem lib which is best to avoid and we can infer
that it works account optional adapters.
2025-01-17 12:37:12 +00:00
Donal McBreen
f9a78f4fcb
gcloud login tidy
...
Use unless instead of if !, don't suggest running gcloud auth login,
we've just tried that.
2025-01-17 12:34:38 +00:00
Donal McBreen
10dafc058a
Extract secrets_get_flags
2025-01-17 12:31:24 +00:00
Donal McBreen
5e2678dece
Ensure external input is shell escaped
2025-01-17 12:28:59 +00:00
Donal McBreen
a1708f687f
Prefix secrets in fetch_secrets
...
This allows us to remove the custom fetch method for enpass.
2025-01-17 12:24:46 +00:00
Donal McBreen
db7556ed99
Fix enpass adapter
...
There were changes in main that meant the tests failed after merging.
Adding the new `requires_account?` method to the enpass adapter fixed it.
2025-01-17 12:07:56 +00:00
Donal McBreen
93133cd7a9
Merge pull request #1236 from andrelaszlo/gcp_secret_manager_adapter
...
Add GCP Secret Manager adapter
2025-01-17 12:07:33 +00:00
Donal McBreen
a7b2ef56c7
Merge pull request #1189 from egze/enpass
...
Add support for Enpass - a password manager for secrets
2025-01-17 12:01:24 +00:00
Donal McBreen
06f2cb223e
Merge branch 'main' into gcp_secret_manager_adapter
2025-01-17 11:57:52 +00:00
Donal McBreen
ea7e72d75f
Merge pull request #1186 from oandalib/bitwarden-secrets-manager
...
feat: add Bitwarden Secrets Manager adapter
2025-01-17 11:43:19 +00:00
Donal McBreen
f1a9a09929
Merge pull request #1265 from phoozle/proxy-bind-ip
...
Add proxy boot_config --publish-ip argument
2025-01-17 08:49:17 +00:00
Donal McBreen
620b132138
Merge pull request #1313 from emmceemoore/patch-1
...
Configure the CLI to exit non-zero on failures.
2025-01-17 08:31:58 +00:00
Donal McBreen
2e7d0ddc44
Merge pull request #1358 from basecamp/dont-run-assets-container
...
Create but don't run the assets container
2025-01-17 08:09:01 +00:00
Donal McBreen
2cdca4596c
Create but don't run the assets container
...
We don't need to run the assets container to copy the assets out,
instead we can just create, copy and remove.
2025-01-16 16:28:02 +00:00