2021-05-30 23:04:17 +02:00
|
|
|
# GICKUP
|
|
|
|
You can clone/mirror repositories from:
|
|
|
|
- Github
|
|
|
|
- Gitlab
|
|
|
|
- Gitea
|
|
|
|
- Gogs
|
2021-06-01 21:47:48 +02:00
|
|
|
- Bitbucket
|
2021-05-30 23:04:17 +02:00
|
|
|
|
|
|
|
You can clone/mirror them to:
|
|
|
|
- Gitlab
|
|
|
|
- Gitea
|
|
|
|
- Gogs
|
|
|
|
- Local
|
|
|
|
|
|
|
|
## Example Config
|
|
|
|
```yaml
|
|
|
|
source:
|
|
|
|
github:
|
|
|
|
- token: blabla
|
|
|
|
user: blabla
|
|
|
|
url: bla.bla.com
|
2021-05-31 23:15:54 +02:00
|
|
|
username: bla
|
|
|
|
password: bla
|
|
|
|
ssh: true # can be true or false
|
|
|
|
sshkey: /path/to/key # if empty, it uses your home directories' .ssh/id_rsa
|
2021-12-02 18:59:16 +01:00
|
|
|
exclude: # this excludes the repos foo and bar
|
|
|
|
- foo
|
|
|
|
- bar
|
2021-12-03 21:34:46 +01:00
|
|
|
excludeorgs:
|
|
|
|
- foo
|
|
|
|
- bar
|
2021-05-30 23:04:17 +02:00
|
|
|
gitea:
|
|
|
|
- token: blabla
|
|
|
|
user: blabla
|
|
|
|
url: bla.bla.com
|
2021-05-31 23:15:54 +02:00
|
|
|
username: bla
|
|
|
|
password: bla
|
|
|
|
ssh: true # can be true or false
|
|
|
|
sshkey: /path/to/key # if empty, it uses your home directories' .ssh/id_rsa
|
2021-12-02 18:59:16 +01:00
|
|
|
exclude: # this excludes the repos foo and bar
|
|
|
|
- foo
|
|
|
|
- bar
|
2021-05-30 23:04:17 +02:00
|
|
|
gogs:
|
|
|
|
- token: blabla
|
|
|
|
user: blabla
|
|
|
|
url: bla.bla.com
|
2021-05-31 23:15:54 +02:00
|
|
|
username: bla
|
|
|
|
password: bla
|
|
|
|
ssh: true # can be true or false
|
|
|
|
sshkey: /path/to/key # if empty, it uses your home directories' .ssh/id_rsa
|
2021-12-02 18:59:16 +01:00
|
|
|
exclude: # this excludes the repos foo and bar
|
|
|
|
- foo
|
|
|
|
- bar
|
2021-05-30 23:04:17 +02:00
|
|
|
gitlab:
|
|
|
|
- token: blabla
|
|
|
|
user: blabla
|
|
|
|
url: bla.bla.com
|
2021-05-31 23:15:54 +02:00
|
|
|
username: bla
|
|
|
|
password: bla
|
|
|
|
ssh: true # can be true or false
|
|
|
|
sshkey: /path/to/key # if empty, it uses your home directories' .ssh/id_rsa
|
2021-12-02 18:59:16 +01:00
|
|
|
exclude: # this excludes the repos foo and bar
|
|
|
|
- foo
|
|
|
|
- bar
|
2021-06-01 21:43:25 +02:00
|
|
|
bitbucket:
|
|
|
|
- user: blabla
|
|
|
|
url: blabla
|
|
|
|
username: blabla
|
|
|
|
password: blabla
|
|
|
|
ssh: true # can be true or false
|
|
|
|
sshkey: /path/to/key # if empty, it uses your home directories' .ssh/id_rsa
|
2021-12-02 18:59:16 +01:00
|
|
|
exclude: # this excludes the repos foo and bar
|
|
|
|
- foo
|
|
|
|
- bar
|
2021-05-30 23:04:17 +02:00
|
|
|
destination:
|
|
|
|
gitea:
|
|
|
|
- token: blabla
|
|
|
|
url: bla.bla.com
|
|
|
|
gogs:
|
|
|
|
- token: blabla
|
|
|
|
url: bla.bla.com
|
|
|
|
gitlab:
|
|
|
|
- token: blabla
|
|
|
|
url: bla.bla.com
|
|
|
|
local:
|
|
|
|
- path: /some/path/gickup
|
|
|
|
```
|
|
|
|
|
|
|
|
## How to run
|
|
|
|
`./gickup path-to-config.yml`
|
|
|
|
|
|
|
|
## Compile
|
|
|
|
`go build .`
|