From a9bbbf458cc5f57d93cddf6bcc0e599a84ad9a4b Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Tue, 19 Nov 2024 17:41:31 +0300 Subject: [PATCH] Add Dockerfile, rewrite source --- .gitignore | 6 ++++++ README.md | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.gitignore b/.gitignore index adf8f72..b2fb544 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,9 @@ # Go workspace file go.work +# + +.env +*~ +.*~ +config.yaml diff --git a/README.md b/README.md index 43eaafd..0dddea2 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,23 @@ Миграция артефактов между разичными репозиториями. Базовый вариант между 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" +``` \ No newline at end of file