mirror of https://github.com/cloudreve/Cloudreve
Init V4 community edition
parent
960314b7f8
commit
11f3aefad6
|
@ -65,17 +65,9 @@ changelog:
|
|||
release:
|
||||
draft: true
|
||||
prerelease: auto
|
||||
skip_upload: true
|
||||
target_commitish: "{{ .Commit }}"
|
||||
name_template: "{{.Version}}"
|
||||
|
||||
blobs:
|
||||
- provider: s3
|
||||
endpoint: https://a09fb0452382d8d745cf79d9c5ce7f7d.r2.cloudflarestorage.com
|
||||
region: auto
|
||||
bucket: cloudreve
|
||||
directory: "{{.Version}}"
|
||||
|
||||
dockers:
|
||||
- dockerfile: Dockerfile
|
||||
use: buildx
|
||||
|
@ -88,7 +80,7 @@ dockers:
|
|||
- .build/aria2.supervisor.conf
|
||||
- .build/entrypoint.sh
|
||||
image_templates:
|
||||
- "cloudreve.azurecr.io/cloudreve/pro:{{ .Tag }}-amd64"
|
||||
- "cloudreve/cloudreve:{{ .Tag }}-amd64"
|
||||
- dockerfile: Dockerfile
|
||||
use: buildx
|
||||
build_flag_templates:
|
||||
|
@ -99,14 +91,14 @@ dockers:
|
|||
- .build/aria2.supervisor.conf
|
||||
- .build/entrypoint.sh
|
||||
image_templates:
|
||||
- "cloudreve.azurecr.io/cloudreve/pro:{{ .Tag }}-arm64"
|
||||
- "cloudreve/cloudreve:{{ .Tag }}-arm64"
|
||||
|
||||
docker_manifests:
|
||||
- name_template: "cloudreve.azurecr.io/cloudreve/pro:latest"
|
||||
- name_template: "cloudreve/cloudreve:latest"
|
||||
image_templates:
|
||||
- "cloudreve.azurecr.io/cloudreve/pro:{{ .Tag }}-amd64"
|
||||
- "cloudreve.azurecr.io/cloudreve/pro:{{ .Tag }}-arm64"
|
||||
- name_template: "cloudreve.azurecr.io/cloudreve/pro:{{ .Tag }}"
|
||||
- "cloudreve/cloudreve:{{ .Tag }}-amd64"
|
||||
- "cloudreve/cloudreve:{{ .Tag }}-arm64"
|
||||
- name_template: "cloudreve/cloudreve:{{ .Tag }}"
|
||||
image_templates:
|
||||
- "cloudreve.azurecr.io/cloudreve/pro:{{ .Tag }}-amd64"
|
||||
- "cloudreve.azurecr.io/cloudreve/pro:{{ .Tag }}-arm64"
|
||||
- "cloudreve/cloudreve:{{ .Tag }}-amd64"
|
||||
- "cloudreve/cloudreve:{{ .Tag }}-arm64"
|
||||
|
|
|
@ -89,11 +89,11 @@ func NewServerStaticFS(l logging.Logger, statics fs.FS, isPro bool) (static.Serv
|
|||
}
|
||||
|
||||
if v.Name != staticName {
|
||||
l.Panic("Static resource version mismatch, please delete \"statics\" folder and rebuild it.")
|
||||
l.Error("Static resource version mismatch, please delete \"statics\" folder and rebuild it.")
|
||||
}
|
||||
|
||||
if v.Version != constants.BackendVersion {
|
||||
l.Panic("Static resource version mismatch [Current %s, Desired: %s],please delete \"statics\" folder and rebuild it.", v.Version, constants.BackendVersion)
|
||||
l.Error("Static resource version mismatch [Current %s, Desired: %s],please delete \"statics\" folder and rebuild it.", v.Version, constants.BackendVersion)
|
||||
}
|
||||
|
||||
return staticFS, nil
|
||||
|
|
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit b485bf297974cbe4834d2e8e744ae7b7e5b2ad39
|
||||
Subproject commit 721148b96904c12079d8ecdaf85ca6d93ed156ac
|
|
@ -43,7 +43,5 @@ jobs:
|
|||
workdir: "$(Build.SourcesDirectory)"
|
||||
args: "release --timeout 60m"
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
|
||||
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
|
||||
GITHUB_TOKEN: $(GITHUB_TOKEN)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
pro:
|
||||
image: cloudreve.azurecr.io/cloudreve/pro:latest
|
||||
image: cloudreve/cloudreve:latest
|
||||
container_name: cloudreve-pro-backend
|
||||
depends_on:
|
||||
- postgresql
|
||||
|
@ -15,7 +15,6 @@ services:
|
|||
- CR_CONF_Database.Name=cloudreve
|
||||
- CR_CONF_Database.Port=5432
|
||||
- CR_CONF_Redis.Server=redis:6379
|
||||
- CR_LICENSE_KEY=${CR_LICENSE_KEY}
|
||||
volumes:
|
||||
- backend_data:/cloudreve/data
|
||||
|
||||
|
|
15
go.mod
15
go.mod
|
@ -20,10 +20,8 @@ require (
|
|||
github.com/gin-contrib/sessions v1.0.2
|
||||
github.com/gin-contrib/static v0.0.0-20191128031702-f81c604d8ac2
|
||||
github.com/gin-gonic/gin v1.10.0
|
||||
github.com/glebarez/go-sqlite v1.22.0
|
||||
github.com/go-ini/ini v1.50.0
|
||||
github.com/go-mail/mail v2.3.1+incompatible
|
||||
github.com/go-pay/gopay v1.5.109
|
||||
github.com/go-playground/validator/v10 v10.20.0
|
||||
github.com/go-sql-driver/mysql v1.6.0
|
||||
github.com/go-webauthn/webauthn v0.11.2
|
||||
|
@ -40,7 +38,6 @@ require (
|
|||
github.com/jpillora/backoff v1.0.0
|
||||
github.com/juju/ratelimit v1.0.1
|
||||
github.com/lib/pq v1.10.9
|
||||
github.com/logto-io/go/v2 v2.0.0
|
||||
github.com/mholt/archiver/v4 v4.0.0-alpha.6
|
||||
github.com/mojocn/base64Captcha v0.0.0-20190801020520-752b1cd608b2
|
||||
github.com/pquerna/otp v1.2.0
|
||||
|
@ -48,12 +45,10 @@ require (
|
|||
github.com/rafaeljusto/redigomock v0.0.0-20191117212112-00b2509252a1
|
||||
github.com/robfig/cron/v3 v3.0.1
|
||||
github.com/samber/lo v1.38.1
|
||||
github.com/smartwalle/alipay/v3 v3.2.25
|
||||
github.com/speps/go-hashids v2.0.0+incompatible
|
||||
github.com/spf13/cobra v1.7.0
|
||||
github.com/spf13/pflag v1.0.5
|
||||
github.com/stretchr/testify v1.9.0
|
||||
github.com/stripe/stripe-go/v81 v81.0.0
|
||||
github.com/tencentyun/cos-go-sdk-v5 v0.7.54
|
||||
github.com/ua-parser/uap-go v0.0.0-20250213224047-9c035f085b90
|
||||
github.com/upyun/go-sdk v2.1.0+incompatible
|
||||
|
@ -89,14 +84,7 @@ require (
|
|||
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
|
||||
github.com/gin-contrib/sse v0.1.0 // indirect
|
||||
github.com/go-errors/errors v1.4.2 // indirect
|
||||
github.com/go-jose/go-jose/v4 v4.0.4 // indirect
|
||||
github.com/go-openapi/inflect v0.19.0 // indirect
|
||||
github.com/go-pay/crypto v0.0.1 // indirect
|
||||
github.com/go-pay/errgroup v0.0.3 // indirect
|
||||
github.com/go-pay/smap v0.0.2 // indirect
|
||||
github.com/go-pay/util v0.0.4 // indirect
|
||||
github.com/go-pay/xlog v0.0.3 // indirect
|
||||
github.com/go-pay/xtime v0.0.2 // indirect
|
||||
github.com/go-playground/locales v0.14.1 // indirect
|
||||
github.com/go-playground/universal-translator v0.18.1 // indirect
|
||||
github.com/go-webauthn/x v0.1.14 // indirect
|
||||
|
@ -132,9 +120,6 @@ require (
|
|||
github.com/pierrec/lz4/v4 v4.1.14 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||
github.com/smartwalle/ncrypto v1.0.4 // indirect
|
||||
github.com/smartwalle/ngx v1.0.9 // indirect
|
||||
github.com/smartwalle/nsign v1.0.9 // indirect
|
||||
github.com/stretchr/objx v0.5.2 // indirect
|
||||
github.com/therootcompany/xz v1.0.1 // indirect
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
||||
|
|
Loading…
Reference in New Issue