Skip to content

Deploying with multiple SSH users #1040

Answered by nickhammond
Antsiscool asked this question in Q&A
Discussion options

You must be logged in to vote

@Antsiscool You should be able to set the user dynamically and Kamal will use that for the deploy.

Something like:

<%
require 'dotenv'
Dotenv.load(".kamal/secrets")
%>
ssh:
  user: <%= ENV['DEPLOY_AS'] %>

And then have DEPLOY_AS set in .kamal/secrets.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@brodienguyen
Comment options

@nickhammond
Comment options

@nickhammond
Comment options

@brodienguyen
Comment options

Answer selected by Antsiscool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants