bundles/ldap-frontend: needs translations now

This commit is contained in:
Franzi 2021-12-23 09:23:52 +01:00
parent 54bb3654e9
commit 414b57d3db
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -8,6 +8,7 @@ git_deploy = {
'rev': 'main',
'triggers': {
'action:ldap-frontend_install_deps',
'action:ldap-frontend_compile_translations',
'svc_systemd:ldap-frontend:restart',
},
},
@ -31,6 +32,16 @@ actions = {
'action:ldap-frontend_make_virtualenv',
},
},
'ldap-frontend_compile_translations': {
'triggered': True,
'command': ' && '.join([
'cd /opt/ldap-frontend/src/ldap_frontend',
'/opt/ldap-frontend/venv/bin/pybabel compile -d translations',
]),
'needs': {
'action:ldap-frontend_install_deps',
},
},
}
files = {
@ -53,6 +64,7 @@ svc_systemd = {
'ldap-frontend': {
'needs': {
'action:ldap-frontend_install_deps',
'action:ldap-frontend_compile_translations',
'file:/etc/systemd/system/ldap-frontend.service',
'file:/opt/ldap-frontend/config.json',
},