Skip to content
Snippets Groups Projects
Commit 0866e63e authored by Dusan Orlovic's avatar Dusan Orlovic
Browse files

Auto deploy wip

parent a535108f
Loading
......@@ -209,14 +209,25 @@ registry:
For Github
```
# config/deploy.yml
image: duleorlovic/myapp
image: githubusername/myapp
registry:
server: ghcr.io
username: duleorlovic
username: githubusername
password:
- KAMAL_REGISTRY_PASSWORD
```
You can generate registry password token on Settings > Personal Access Tokens
PAT > Tokens > Classic token
https://github.com/settings/tokens/new
Classic without expiration with following scopes:
* repo (to read github repo)
* write:packages, delete:packages
Token start with `ghp_`
Note that image name should be in format `githubusername/myapprepo`
## Destinations
https://kamal-deploy.org/docs/configuration/overview/#destinations
......@@ -253,6 +264,7 @@ aliases:
dbc: app exec --interactive --reuse "bin/rails dbconsole"
proxy-ls: server exec docker exec kamal-proxy kamal-proxy ls
psql: accessory exec db --reuse --interactive -- psql -U user postgres
```
Example app exec for specific roles and first `--primary` container
......@@ -321,3 +333,7 @@ Show info about proxy
kamal proxy details
kamal proxy boot_config get
```
## Autodeploy from github actions
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment