Custom certs per role
- Upload the cert with `sshkit.upload!` - Use the role name to create a directory for each role's certs - Add an integration test for the custom certs
This commit is contained in:
@@ -142,6 +142,16 @@ class MainTest < IntegrationTest
|
||||
assert_app_is_up version: first_version
|
||||
end
|
||||
|
||||
test "deploy with a custom certificate" do
|
||||
@app = "app_with_custom_certificate"
|
||||
|
||||
first_version = latest_app_version
|
||||
|
||||
kamal :setup
|
||||
|
||||
assert_app_is_up version: first_version, cert: "test/integration/docker/deployer/app_with_custom_certificate/certs/cert.pem"
|
||||
end
|
||||
|
||||
private
|
||||
def assert_envs(version:)
|
||||
assert_env :KAMAL_HOST, "vm1", version: version, vm: :vm1
|
||||
|
||||
Reference in New Issue
Block a user