An example repo showing how to use the official dokku GitHub action to deploy your app with continuous delivery.
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.
# on server
dokku apps:create github-actions-demo-app# on local
git remote add dokku dokku@dokku.proxima-web.com:github-actions-demo-app
git push dokkuVisit http://github-actions-demo-app.dokku.proxima-web.com/ to confirm the deployment was successful.
Each time a pull request is opened a new review app is deployed.
The example workflow uses GitHub Deploys and requires the following environments to be created:
- production
- review
You can add new environments in your repo settings. You can also take advantage of environment protection rules to request reviews before deployments can take place.