Skip to content

Instantly share code, notes, and snippets.

View thomascenni's full-sized avatar

Thomas Cenni thomascenni

View GitHub Profile
@spencerldixon
spencerldixon / deploy.yml
Created May 23, 2024 13:29
Kamal Boilerplate
service: wordsweeper
image: spencerldixon/wordsweeper
servers:
web:
hosts:
- 78.47.88.46
labels:
traefik.http.routers.domain.rule: Host(`wordsweeper.fun`, `www.wordsweeper.fun`)
traefik.http.routers.domain.entrypoints: websecure
@acidtib
acidtib / readme.md
Created August 28, 2023 17:56
kamal + github actions

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