Migrate gitea’s storage to minio

Original link: https://www.bboy.app/2023/05/12/%E8%BF%81%E7%A7%BBgitea%E7%9A%84%E5%AD%98%E5%82%A8% E5%88%B0minio/

Introduction

My gitea is actually my docker registry. As more and more images are pushed, gitea’s packages data is also getting bigger and bigger, so I consider migrating all the data in the packages to minio directly. I took a look at gitea. Direct support for migration, the cli code is as follows

https://github.com/go-gitea/gitea/blob/release/v1.19/cmd/migrate_storage.go

By the way, attach the configuration list of gitea

https://docs.gitea.io/en-us/administration/config-cheat-sheet/

This article is reproduced from: https://www.bboy.app/2023/05/12/%E8%BF%81%E7%A7%BBgitea%E7%9A%84%E5%AD%98%E5%82%A8% E5%88%B0minio/
This site is only for collection, and the copyright belongs to the original author.