aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@vip.qq.com>2023-05-14 06:33:25 +0800
committerGitHub <noreply@github.com>2023-05-13 22:33:25 +0000
commit61ad4c607b09f102151298af98757dbae2c2fa88 (patch)
tree64067be6a02eba93d947183878c0e86a927bf810 /.github
parent4810fe55e3e73edb962052df46bef125eb1817b3 (diff)
downloadgitea-61ad4c607b09f102151298af98757dbae2c2fa88.tar.gz
gitea-61ad4c607b09f102151298af98757dbae2c2fa88.zip
fix minio storage iterator path (#24691)
minio storage iterator shows different behavior with local fs iterator. in local fs storage: ``` go s.IterateObjects("prefix", func(path,obj) println(path) // show "prefix/xxx.file" }) ``` in minio storage: ```go s.IterateObjects("prefix", func(path,obj) println(path) // show "xxx.file" }) ``` I think local fs is correct, minio use wrong `basePath` to trim storage path prefix. --------- Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pull-db-tests.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/pull-db-tests.yml b/.github/workflows/pull-db-tests.yml
index 4011b4201b..3446b71155 100644
--- a/.github/workflows/pull-db-tests.yml
+++ b/.github/workflows/pull-db-tests.yml
@@ -102,6 +102,13 @@ jobs:
--health-retries 10
ports:
- 6379:6379
+ minio:
+ image: bitnami/minio:2021.3.17
+ env:
+ MINIO_ACCESS_KEY: 123456
+ MINIO_SECRET_KEY: 12345678
+ ports:
+ - "9000:9000"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4