Source code repo: josegonzalez/python-github-backup
- Create & push a new tag to repo :)
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 |
export 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
- DOCKER_PASSWORD
- DOCKER_USERNAME
- SLACK_WEBHOOK