Add Dockerfile, rewrite source

This commit is contained in:
Sergey Zhemoytel 2024-11-19 17:41:31 +03:00
parent 520f3ddaf2
commit a9bbbf458c
2 changed files with 26 additions and 0 deletions

6
.gitignore vendored
View file

@ -21,3 +21,9 @@
# Go workspace file # Go workspace file
go.work go.work
#
.env
*~
.*~
config.yaml

View file

@ -2,3 +2,23 @@
Миграция артефактов между разичными репозиториями. Миграция артефактов между разичными репозиториями.
Базовый вариант между nexus > gitea Базовый вариант между nexus > gitea
## Пример использования
`go run main.go -config=config.yaml`
`go run main.go -config=config.yaml -nexus-url=https://new-nexus.example.com -gitea-token=new-gitea-token`
## Пример конфига
```yaml
nexus:
url: "https://nexus.example.com"
username: "your-nexus-username"
password: "your-nexus-password"
gitea:
url: "https://gitea.example.com"
token: "your-gitea-token"
```