Dennis Jekubczyk 542ce09da0 | 2 years ago | |
---|---|---|
src | 4 years ago | |
.dockerignore | 5 years ago | |
.gitignore | 5 years ago | |
Dockerfile | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 4 years ago | |
docker-entrypoint.sh | 5 years ago | |
package-lock.json | 2 years ago | |
package.json | 4 years ago | |
run-local.sh | 5 years ago |
This script mirrors automatically the public repositories from a github-user or github-organization to your gitea server. It will - once started - create a mirrored repository under a given token for a gitea user fully automatically.
Example:
A github user github-user
has public repositories dotfiles
and zsh-config
.
Starting the script with a gitea token for the account gitea-user
will create the following mirror repositories:
The mirror settings are default by your gitea instance.
docker container run \
-d \
--restart always \
-e GITHUB_USERNAME=github-user \
-e GITEA_URL=https://some-gitea.url \
-e GITEA_TOKEN=please-exchange-with-token \
jaedle/mirror-to-gitea:latest
This will a spin up a docker container running infinite which will try to mirror all your repositories once every hour to your gitea server.
GITHUB_USERNAME
name of user or organization which public repos should be mirroredGITHUB_TOKEN
GitHub personal access token (optional)GITEA_URL
url of your gitea serverGITEA_TOKEN
token for your gitea user