https://github.com/badsyntax/dokku-github-actions-demo
https://github.com/badsyntax/dokku-github-actions-demo
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/badsyntax/dokku-github-actions-demo
- Owner: badsyntax
- Created: 2021-01-25T20:06:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-05T20:57:02.000Z (over 2 years ago)
- Last Synced: 2025-06-11T19:19:53.808Z (8 months ago)
- Language: HTML
- Size: 196 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Dokku GitHub Action Example
An example repo showing how to use the official [dokku GitHub action](https://github.com/dokku/github-action) to deploy your app with continuous delivery.
## GitHub Secrets
The following secrets must be set:
- `SSH_PRIVATE_KEY`
You'll see reference to a secret called `GITHUB_TOKEN` in the workflow files, but there's no need to manually set this yourself as this is set by GitHub Actions.
If you want to see debug information, you can create a secret called `ACTIONS_STEP_DEBUG` with a value of `true`.
## dokku Setup
```bash
# on server
dokku apps:create github-actions-demo-app
```
```bash
# on local
git remote add dokku dokku@dokku.proxima-web.com:github-actions-demo-app
git push dokku
```
Visit http://github-actions-demo-app.dokku.proxima-web.com/ to confirm the deployment was successful.
## Review Apps
Each time a pull request is opened a new review app is deployed.
The [example workflow](./.github/workflows/review-app.yml) uses [GitHub Deploys](https://docs.github.com/en/rest/reference/repos#deployments) and requires the following [environments](https://docs.github.com/en/actions/reference/environments) to be created:
- production
- review
You can add new environments in your repo settings. You can also take advantage of [environment protection rules](https://docs.github.com/en/actions/reference/environments#environment-protection-rules) to request reviews before deployments can take place.