update image version

This commit is contained in:
a624669980@163.com 2022-08-22 14:46:24 +08:00
parent f38cdbab95
commit 92019ccfab
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -39,3 +39,5 @@ CasaOS
github.com
.all-contributorsrc
build
dist
.goreleaser.yaml

View File

@ -220,7 +220,7 @@ func AppInfo(c *gin.Context) {
// sort.EnvSort(envOrder).Sort(info.Envs)
// sort.VolSort(volOrder).Sort(info.Volumes.([]model.PathMap))
// sort.DevSort(devOrder).Sort(info.Devices)
info.Image += ":" + info.ImageVersion
info.MaxMemory = (service.MyService.System().GetMemInfo()["total"]).(uint64) >> 20
c.JSON(common_err.SUCCESS, &model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS), Data: info})