dependabot[bot]
32ab72089a
Bump rack from 3.1.8 to 3.1.10 in the bundler group across 1 directory
...
Bumps the bundler group with 1 update in the / directory: [rack](https://github.com/rack/rack ).
Updates `rack` from 3.1.8 to 3.1.10
- [Release notes](https://github.com/rack/rack/releases )
- [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rack/rack/compare/v3.1.8...v3.1.10 )
---
updated-dependencies:
- dependency-name: rack
dependency-type: indirect
dependency-group: bundler
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-02-12 19:26:36 +00:00
Michael Weiner
5377871278
Add UT for missing command
2025-02-08 13:09:57 -06:00
Michael Weiner
91259720b2
Fail kamal app exec without a CMD
2025-02-07 20:13:18 -06:00
Donal McBreen
6f29d4e78b
Bump version for 2.5.2
v2.5.2
2025-02-07 15:27:30 +00:00
Donal McBreen
9d2dda0d77
Merge pull request #1402 from basecamp/fix-docker-build
...
Fix the docker build
2025-02-06 14:59:14 +00:00
Donal McBreen
b130bc0321
Fix the docker build
...
Somewhere along the way the docker build broke, it now needs yaml-dev
to be installed. Maybe the underlying image changed?
Update to 3.4-alpine while we are here.
2025-02-06 14:45:37 +00:00
Donal McBreen
28be0300b9
Bump version for 2.5.1
v2.5.1
2025-02-06 13:54:46 +00:00
Donal McBreen
3c2163ab78
Merge pull request #1401 from basecamp/avoid-docker-check-with-skipping-local
...
Only check for docker when logging in locally
2025-02-06 11:35:49 +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
v2.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
854dd925ba
Merge pull request #1397 from basecamp/prep-for-2.5
...
Prep for 2.5
2025-02-04 09:18:30 +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
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