Skip to content

Build a docker image to keep your fork's existing branches up to date

Notifications You must be signed in to change notification settings

imkarrer/fork-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  1. Clone this repo and setup ssh access to github.

  2. Build the docker image. For this example we use master as a placeholder for your docker container name, which should resemble what branch and upstream you are keeping in sync. We will use master in this example.

docker build --build-arg GH_USER=<github_username> --build-arg REPO=<github_repo_name> --build-arg UPSTREAM=<upstream_owner_name> --build-arg BRANCH=master -t fork-sync/master:1.0 .

  1. Run the following to initialize the container and update your branch.

docker run -it -v <path_to_gh_sshkey>:/root/.ssh --name master fork-sync/master:1.0

  1. Run the following to update your branch now that the container exists

docker start master

Releases

No releases published

Packages

No packages published