Source code repo: josegonzalez/python-github-backup
docker run --rm -e GITHUB_USERNAME=maxromanovsky -e GITHUB_TOKEN=gh_token -e GITHUB_USER_TO_BACKUP=maxromanovsky -v "/Users/max/Downloads/gh:/out" maxromanovsky/python-github-backup:latest
| Environment variable name | Description | Defaults |
|---|---|---|
GITHUB_USERNAME | Github username for auth | |
GITHUB_TOKEN | Personal access token for auth | |
GITHUB_USER_TO_BACKUP | Github user whose repositories should be backed up | |
BACKUP_OPTIONS | github-backup options | --repositories --gists -P -F --bare |
DIR_DESTINATION | Backup destination directory | /out |
docker buildxexport GITHUB_BACKUP_VERSION=0.33.0
docker buildx build --platform linux/amd64,linux/arm/v7 --build-arg VERSION=$GITHUB_BACKUP_VERSION -t maxromanovsky/python-github-backup:v${GITHUB_BACKUP_VERSION} --push .
brew install nektos/tap/act
act -P ubuntu-latest=phaze9/action-runner -s DOCKER_USERNAME=maxromanovsky -s DOCKER_PASSWORD=docker-personal-access-token
Content type
Image
Digest
Size
22.3 MB
Last updated
over 5 years ago
docker pull maxromanovsky/python-github-backup