bundlewrap/bundles/riot-web/items.py

41 lines
845 B
Python
Raw Normal View History

2020-02-29 14:42:54 +00:00
riot_web_root = '/var/www/{}'.format(node.metadata['riot-web']['url'])
directories = {
riot_web_root: {}
}
pkg_apt = {
'yarn': {},
}
git_deploy = {
riot_web_root: {
'needs': [
'directory:' + riot_web_root,
],
'rev': 'master',
'repo': 'https://github.com/vector-im/riot-web.git',
'triggers': [
'action:riot_yarn_install',
'action:riot_yarn_build',
],
},
}
actions = {
'riot_yarn_install': {
'command': 'cd ' + riot_web_root + ' && yarn install',
'needs': [
'pkg_apt:yarn',
],
'triggered': True,
},
'riot_yarn_build': {
'command': 'cd ' + riot_web_root + ' && yarn build',
'needs': [
'action:riot_yarn_install',
],
'triggered': True,
},
}