keybase_git_backup
2.4K
Committing repositories to Keybase git
This Docker setup allows you to login to keybase and commit all accessible repositories to their respective keybase git repositories. A changelog.md with all new, modified and deleted files will be generated inside the repository. A mail with deleted files will be sent to the indicated user.
git clone [email protected]:unfoldingWord/keybase_git_backup
docker pull unfoldingword/keybase_git_backup
docker build -t <dockerhub-username>/<repo-name> .
docker run --env-file .env --rm -v /local/path/to/repos:/repos --name keybase-git unfoldingword/keybase_git_backup
where local/path/to/repos is the location where your git repos are stored.
You need to provide the following environment variables, either through a .env file, or by setting them manually
KEYBASE_USERNAME (your Keybase username)KEYBASE_PAPERKEY (a valid Keybase paper key)KEYBASE_SERVICE (should be 1, but you can omit it, as it has already been hardcoded in the build)GIT_AUTHOR_NAME (Your Git username)GIT_AUTHOR_EMAIL (Your Git email address)PATHS_CHANGELOG A bash array with the path to each changelog, per repository. The given path MUST exist!SENDGRID_API_KEY (Your Sendgrid API key)TO_EMAIL (Where to send the email to)TO_NAME (Name of the addressee)FROM_EMAIL (Email of sender)FROM_NAME (Name of sender)REPLY_EMAIL (Reply email)REPLY_NAME (Name of sender)This project is licensed under the MIT License
Content type
Image
Digest
sha256:82fea0dd3…
Size
442.3 MB
Last updated
22 days ago
docker pull unfoldingword/keybase_git_backupPulls:
120
Last week