Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
Kamal tips
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yml
Kamal tips
Commits
0866e63e
Commit
0866e63e
authored
1 month ago
by
Dusan Orlovic
Browse files
Options
Downloads
Patches
Plain Diff
Auto deploy wip
parent
a535108f
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+18
-2
18 additions, 2 deletions
README.md
with
18 additions
and
2 deletions
README.md
+
18
−
2
View file @
0866e63e
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment