Automatic Deployment Script - Deploying to dokku automatically by tagging a PR
For proj-frontiers, the team has set up a Github Action so that if you put a dokku link in any PR description, and then add the special tag Dokku Deploy, a Github Action will run that deploys the branch for that PR on that Dokku Deployment.
In addition, it uses the relevant Github API so that the “Deployment” features of the PR are invoked; that is, you can scroll down and see the progress and status of the deployment right in the PR.
Example Screenshots
TODO
Maintance of Secrets
The workflow described above depends on certain secrets and scripts and credentials being configured properly. If the workflow stops working at some point, it may be that the credentials need to be updated.
TODO: Explain what has to be configured.
Spreadsheet of Deployments
The proj-frontiers team also maintains a spreadsheet of dokku instances where PRs can be deployed, here (note that there isn’t necessarily public access to this spreadsheet):
- https://docs.google.com/spreadsheets/d/1-IQJ0kTyenqZFeS1qeUZvD6oKls2WnlYwSts9IwwtHQ/edit?gid=0#gid=0
TODO: Add instructions for using this spreadsheet.