Sign inSign up

maxromanovsky/python-github-backup

By maxromanovsky

Updated over 5 years ago

Image
0

697

maxromanovsky/python-github-backup repository overview

Multi-arch Docker image for python-github-backup

GitHub tag (latest by date) Docker Image Version (latest semver) Docker Image (latest) CI Docker Image (release) CI

Source code repo: josegonzalez/python-github-backup

Usage

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

Configuration

Environment variable nameDescriptionDefaults
GITHUB_USERNAMEGithub username for auth
GITHUB_TOKENPersonal access token for auth
GITHUB_USER_TO_BACKUPGithub user whose repositories should be backed up
BACKUP_OPTIONSgithub-backup options--repositories --gists -P -F --bare
DIR_DESTINATIONBackup destination directory/out

Building locally

Using docker buildx
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 .
Using Github Actions
brew install nektos/tap/act
act -P ubuntu-latest=phaze9/action-runner -s DOCKER_USERNAME=maxromanovsky -s DOCKER_PASSWORD=docker-personal-access-token

Tag summary

Content type

Image

Digest

Size

22.3 MB

Last updated

over 5 years ago

docker pull maxromanovsky/python-github-backup