Donal McBreen
ba6dd6ff14
Merge pull request #1396 from basecamp/allow-accessory-roles-with-no-hosts
...
Allow accessory roles with no hosts
2025-02-03 16:54:28 +00: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
dba3a115bd
Merge pull request #1395 from basecamp/app-boot-hooks
...
Add pre and post app boot hooks
2025-02-03 16:04:14 +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
Donal McBreen
09d020e9bb
Merge pull request #1357 from flavorjones/flavorjones-kamal-build-local
...
Introduce a "build dev" command
2025-02-03 09:07:00 +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
Donal McBreen
5ddaa3810d
Merge pull request #1370 from flavorjones/flavorjones-ci-matrix
...
ci: use `fail-fast: false` instead of `continue-on-error: true`
2025-01-22 09:28:42 +00:00
Mike Dalessio
3c01dc75fd
ci: use fail-fast: false instead of continue-on-error: true
...
This will give us proper red/green signal on the test suite while
still running the entire matrix.
2025-01-20 18:59:11 -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
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