Donal McBreen
054a85d3c0
Merge pull request #916 from nickhammond/buildpacks
...
Add pack option to the builder options for cloud native buildpacks
2025-06-16 08:57:27 +01:00
Nick Hammond
1d88281fee
Validate that destination, role, and service are not set as labels on roles and accessories
2025-06-09 19:08:20 -07:00
Nick Hammond
c5e5f5d7cc
Merge branch 'basecamp:main' into buildpacks
2025-05-13 09:34:13 -07:00
Krzysztof Duda
78c9d610cf
Add a singular role
2025-05-12 11:07:10 +02:00
David Heinemeier Hansson
7bfb2ed9f2
Actually test the fixture for singular
2025-05-09 21:50:07 +02:00
David Heinemeier Hansson
299c741c1b
More natural api when you are just applying accessory to a single tag
2025-05-09 21:47:26 +02:00
David Heinemeier Hansson
1ca2b4d394
Test with multiple host matches across roles
2025-05-09 21:15:44 +02:00
David Heinemeier Hansson
9aac51bbd0
Extract hosts for accessories by tags
2025-05-09 21:11:28 +02:00
David Heinemeier Hansson
83a5636e27
Pin accessories to tags
2025-05-09 18:14:47 +02:00
Nick Hammond
68404e2673
Merge branch 'basecamp:main' into buildpacks
2025-05-08 02:34:40 -07:00
Donal McBreen
128294672d
Extract Kamal::Configuration::Proxy::Boot
...
This is for boot time configuration for the kamal proxy. Config in here
doesn't not belong in Kamal::Configuration::Proxy which is for deploy
time configuration for the app itself.
Kamal apps don't contain boot time config, because multiple apps can
share a proxy and the config could conflict.
2025-04-23 16:16:12 +01:00
Nick Hammond
fc67cdea33
Merge branch 'basecamp:main' into buildpacks
2025-04-18 07:47:38 -07:00
Donal McBreen
8d5ed62d30
Don't allow booleans for root proxy config
...
Setting it to a false or true doesn't affect the config so shouldn't be
allowed. true/false are for role level configurations.
Fixes: https://github.com/basecamp/kamal/issues/1120
2025-04-18 14:25:29 +01:00
Donal McBreen
91f01ece1b
Ensure that the restart policy is unless-stopped
...
No other restart policy makes sense to don't let it be changed.
Fixes: https://github.com/basecamp/kamal/issues/749
2025-04-17 13:36:26 +01:00
Nick Hammond
38cfc4488b
Merge branch 'basecamp:main' into buildpacks
2025-03-28 11:47:43 -07:00
Donal McBreen
fb95b38e73
Tidy up the env secrets handling
...
The secrets accessor was only used in the tests so remove it.
Skip the memoization, it makes things slightly harder to follow and
it's not needed.
2025-03-24 09:21:27 +00:00
Camillo Visini
c1d8ce7f70
Add ability to alias secrets for tags
...
Aliasing for secrets was introduced in #1439 , but only supported
"top-level" secrets. This adds support for aliasing/mapping secrets
for tags.
2025-03-22 12:11:48 +01:00
Matthew Jones
973fa1a7ff
Adds the ability to alias/map secrets
2025-03-04 07:23:26 -07:00
Nick Hammond
f8f7c6ec57
Catch up with 2.5.1
2025-02-06 07:12:05 -07: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
Nick Hammond
95b606a427
Catch up with main
2025-01-20 09:53:16 -07:00
Pavel Shpak
b5aee11a40
[Feature] Add optional accessory registry.
...
Add test cases to cover new option.
2024-12-22 02:50:53 +02:00
Nick Hammond
9f6660dfbf
Catch up with main
2024-11-26 07:36:54 -07:00
Igor Alexandrov
f52826b2d6
Updated accessory proxy to support hosts option
2024-11-21 22:23:56 +04:00
Igor Alexandrov
4c778de2d9
Added tests for accessory configuration with proxy
2024-11-21 22:23:56 +04:00
Matthew Jones
c970ceebe3
Adds support for SBOM attestations
2024-11-18 13:01:53 -07:00
Nick Hammond
cde5c7abbf
Catch up with main
2024-10-28 08:26:40 -07:00
Donal McBreen
57d582e3bc
Merge pull request #972 from kohkimakimoto/dev-provenance-flag
...
Add provenance option
2024-10-23 14:07:19 +01:00
Donal McBreen
bf8779cef4
Merge pull request #950 from admtnnr/fix-registry-cache-options
...
builder/cache/options: fix order of build args when using registry
2024-10-23 13:59:59 +01:00
Nick Hammond
d538447973
Add validator for buildpack arch
2024-10-17 07:46:45 -07:00
Igor Alexandrov
da2a543cbc
Reverted network arguments everywhere except to accessory config
2024-10-09 10:00:49 +04:00
Igor Alexandrov
b6a10df56a
Added tests for network configuration option
2024-10-09 09:53:25 +04:00
Nick Hammond
c60124188f
Merge branch 'basecamp:main' into buildpacks
2024-10-01 13:59:22 -07:00
Adam Tanner
256933f6f3
builder/cache/options: fix order of build args when using registry
2024-10-01 12:27:45 -04:00
Donal McBreen
641e9056b3
Use = in kamal-proxy deploy command args
...
`=` is required for boolean values and works for all values.
2024-10-01 15:42:12 +01:00
Dmytro Shteflyuk
8df7d7d92d
Do not allow both host and hosts for proxy configuration
2024-09-29 20:43:44 -04:00
Dmytro Shteflyuk
1d48a0fb0a
Allow specifying multiple hosts for kamal proxy via an array
2024-09-29 20:43:44 -04:00
Nick Hammond
71741742ff
Merge branch 'basecamp:main' into buildpacks
2024-09-27 00:19:45 -04:00
Donal McBreen
b3a6921118
Handle ssl: false in proxy config
...
Fixes: https://github.com/basecamp/kamal/issues/956
2024-09-26 06:17:45 -04:00
Kohki Makimoto
c17bdba61c
add tests
2024-09-25 23:50:05 +09:00
Nick Hammond
85a5a09aac
Merge branch 'basecamp:main' into buildpacks
2024-09-22 08:47:08 -07:00
Donal McBreen
fd0cdc1ca1
All role specific proxy configuration
...
By default only the primary role runs the proxy. To disable the proxy
for that role, you can set `proxy: false` under it.
For other roles they default to not running the proxy, but you can
enable it by setting `proxy: true` for the role, or alternatively
setting a proxy configuration.
The proxy configuration will be merged into the root proxy configuration.
2024-09-18 17:25:35 +01:00
Donal McBreen
8bcd896242
Simplified deploy/drain timeouts
...
Remove `stop_wait_time` and `readiness_timeout` from the root config
and remove `deploy_timeout` and `drain_timeout` from the proxy config.
Instead we'll just have `deploy_timeout` and `drain_timeout` in the
root config.
For roles that run the proxy, they are passed to the kamal-proxy deploy
command. Once that returns we can assume the container is ready to
shut down.
For other roles, we'll use the `deploy_timeout` when polling the
container to see if it is ready and the `drain_timeout` when stopping
the container.
2024-09-18 15:08:08 +01:00
Nick Hammond
548452aa12
Merge branch 'basecamp:main' into buildpacks
2024-09-16 18:11:33 -07:00
Donal McBreen
267b526438
Switch proxy/hosts to proxy/host
...
The proxy only supports a single host per app for nowm so make the
config match that.
2024-09-16 20:45:09 +01:00
Donal McBreen
c21757f747
Move all files on the host under a common directory
...
This will make running kamal remove simpler, we can just clean up that
directory.
2024-09-16 16:44:58 +01:00
Donal McBreen
a40b644145
Check that there's no traefik hooks left behind
2024-09-16 16:44:58 +01:00
Donal McBreen
f4d309c5cc
Rip out Traefik
2024-09-16 16:44:55 +01:00
Donal McBreen
e9d480b514
Add the proxy/ssl config and pass on to kamal-proxy
2024-09-16 16:44:41 +01:00
Donal McBreen
aed2ef99d0
Use env files for secrets
...
Add env files back in for secrets - hides them from process lists and
allows you to pick up the latest env file when running
`kamal app exec` without reusing.
2024-09-09 14:43:12 +01:00