I think you have looked at the tutorial from Mr. Heinemeier Hansson at least once or twice and have a similar setup.
rails new kamal_pg --css tailwind --skip-test --database=postgresql
cd kamal_pg| #deploy.yml | |
| service: jlivery-app | |
| image: myuser/jlivery-app | |
| registry: | |
| username: myuser | |
| password: | |
| - KAMAL_REGISTRY_PASSWORD |
Example of Kamal deployment from Github Actions.
Add your applications .env variables to the Github repo as a repository secret, you can find this under the repo settings => secrets and variables => actions
https://github.com/username/repo_name/settings/secrets/actions
you are going to need an ssh private key that your deployment server is aware of (add public key to servers .ssh/authorized_keys) and add the ssh private key as a repo secret
create action workflows