add autoupdate strategy

This commit is contained in:
OniriCorpe 2024-02-14 19:01:05 +01:00
parent 8627232b9f
commit 9374d80e24

View file

@ -7,7 +7,7 @@ description.fr = "Forge logiciel légère"
version = "1.21.5-0~ynh1"
maintainers = ["Emmanuel Averty"]
maintainers = [ "Emmanuel Averty" ]
[upstream]
license = "MIT"
@ -18,7 +18,7 @@ code = "https://codeberg.org/forgejo/forgejo"
[integration]
yunohost = ">= 11.2"
architectures = ["amd64", "arm64", "armhf"]
architectures = [ "amd64", "arm64", "armhf" ]
multi_instance = true
ldap = true
sso = true
@ -58,30 +58,35 @@ ram.runtime = "2G"
extract = false # will be extracted during install script
rename = "forgejo.xz"
[resources.system_user]
allow_ssh = true
autoupdate.asset.amd64 = "^forgejo-.*-linux-amd64.xz$"
autoupdate.asset.arm64 = "^forgejo-.*-linux-arm64.xz$"
autoupdate.asset.armhf = "^forgejo-.*-linux-arm-6.xz$"
autoupdate.strategy = "latest_forgejo_release"
[resources.ports]
main.default = 6000
[resources.system_user]
allow_ssh = true
[resources.install_dir]
[resources.ports]
main.default = 6000
[resources.data_dir]
[resources.install_dir]
[resources.permissions]
main.url = "/"
[resources.data_dir]
admin.show_tile = false
admin.auth_header = false
admin.protected = true
[resources.permissions]
main.url = "/"
api.url = "/api"
api.show_tile = false
api.allowed = "visitors"
api.auth_header = false
admin.show_tile = false
admin.auth_header = false
admin.protected = true
[resources.apt]
packages = "postgresql"
api.url = "/api"
api.show_tile = false
api.allowed = "visitors"
api.auth_header = false
[resources.database]
type = "postgresql"
[resources.apt]
packages = "postgresql"
[resources.database]
type = "postgresql"