fix(cd): use build-push-action-v2 with default Dockerfile

This commit is contained in:
hexxa 2022-02-08 15:04:49 +08:00 committed by Hexxa
parent e830611af1
commit 012df60679
2 changed files with 28 additions and 12 deletions

View file

@ -137,6 +137,10 @@ func initDeps(cfg gocfg.ICfg) *depidx.Deps {
ider := simpleidgen.New()
filesystem := local.NewLocalFS(rootPath, 0660, opensLimit, openTTL, readerTTL, ider)
jwtEncDec := jwt.NewJWTEncDec(secret)
if err := filesystem.MkdirAll(dbPath); err != nil {
panic(fmt.Sprintf("fail to create path for db: %s", err))
}
kv := boltdbpvd.New(dbPath, 1024)
users, err := userstore.NewKVUserStore(kv)
if err != nil {