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
Donal McBreen
f8db5de5eb
Merge pull request #1354 from matthewbjones/feature/docker-build-cloud
...
Adds support for Docker Build Cloud
2025-01-20 08:24:27 +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
9ef6c2f893
Merge pull request #1361 from basecamp/ruby-3.4
...
Update to Ruby 3.4 from the preview version
2025-01-17 15:27:34 +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
a5b9c69838
Update to Ruby 3.4 from the preview version
2025-01-17 15:17:37 +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
0174b872bf
Merge pull request #1362 from basecamp/boot-accessories-after-pre-deploy-hook
...
Boot accessories after pre-deploy hook
2025-01-17 15:13:04 +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
85c1c47c2f
Merge pull request #1360 from basecamp/secret-adapter-tidy
...
Secret adapter tidy
2025-01-17 13:01:21 +00:00
Donal McBreen
9f1688da7a
Fix test
2025-01-17 12:52:23 +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
9035bd0d88
Merge pull request #1359 from basecamp/add-env-precedence-tests
...
Add tests for env/secret file precedence
2025-01-17 11:19:32 +00:00
Donal McBreen
dd8cadf743
Add tests for env/secret file precedence
2025-01-17 11:06:29 +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
ab8396fbb2
Merge pull request #1032 from basecamp/set-config-file-and-deploy-in-aliases
...
Allow destination and config-file in aliases
2025-01-17 08:07:06 +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
Donal McBreen
78fcc3d88f
Allow destination and config-file in aliases
...
We only loaded the configuration once, which meant that aliases always
used the initial configuration file and destination.
We don't want to load the configuration in subcommands as it is not
passed all the options we need. But just checking if we are in a
subcommand is enough - the alias reloads and the subcommand does not.
One thing to note is that anything passed on the command line overrides
what is in the alias, so if an alias says
`other_config: config -c config/deploy2.yml` and you run
`kamal other_config -c config/deploy.yml`, it won't switch.
2025-01-16 15:51:18 +00:00
Pavel Shpak
d59c274208
Fix typo in configuration initializer method.
2024-12-22 04:37:15 +02:00
Pavel Shpak
bd8689c185
Fix bug in role validate_servers.
...
There were typo-bug during `validate_servers!` invocation for role.
It wasn't discovered, because it never met condition. Because role_config wasn't correctly extracted for validation.
Also remove not used anymore `accessories_on`. Leftover from previous changes.
2024-12-22 03:28:12 +02:00
Pavel Shpak
b5aee11a40
[Feature] Add optional accessory registry.
...
Add test cases to cover new option.
2024-12-22 02:50:53 +02:00
Mike Moore
2943c4a301
Use the newer option name.
2024-12-20 08:45:47 -07:00
Mike Moore
32e1b6504d
Re-trigger GitHub actions.
2024-12-20 08:26:14 -07:00
Mike Moore
39e2c4f848
Trying the new method for setting proxy boot config.
2024-12-19 12:14:00 -07:00
Mike Moore
89db5025a0
Configure Thor to "exit on failure".
2024-12-19 09:28:37 -07:00
Piotrek O
c56edba4a9
Boot proxy on server setup
2024-12-18 11:35:57 +01:00
Donal McBreen
1547089da0
Bump version for 2.4.0
v2.4.0
2024-12-13 12:38:26 +00:00
Donal McBreen
ae7a4f3411
Update yml files to match doc site changes
2024-12-13 12:27:22 +00:00
Donal McBreen
77c202ebaf
Highlight ssl/forward_headers behaviour
...
Pulled in from: https://github.com/basecamp/kamal-site/pull/141
2024-12-13 12:20:05 +00:00
Donal McBreen
063dfd9edd
Merge pull request #1296 from basecamp/fix-for-dotenv-1.3.5
...
Fix for Dotenv 3.1.5
2024-12-13 10:54:16 +00:00