bundles/element-web: rename from riot-web, use tagged releases
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
d1b1ca7729
commit
9d5d80457f
5 changed files with 93 additions and 81 deletions
38
bundles/element-web/items.py
Normal file
38
bundles/element-web/items.py
Normal file
|
@ -0,0 +1,38 @@
|
|||
assert node.has_bundle('nodejs')
|
||||
|
||||
from json import dumps
|
||||
|
||||
element_web_root = '/var/www/{}'.format(node.metadata['element-web']['url'])
|
||||
|
||||
directories = {
|
||||
element_web_root: {}
|
||||
}
|
||||
|
||||
git_deploy = {
|
||||
element_web_root: {
|
||||
'rev': node.metadata['element-web']['version'],
|
||||
'repo': 'https://github.com/vector-im/element-web.git',
|
||||
'triggers': {
|
||||
'action:element-web_yarn',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
files = {
|
||||
element_web_root + '/webapp/config.json': {
|
||||
'content': dumps(node.metadata['element-web']['config']),
|
||||
'needs': {
|
||||
'action:element-web_yarn',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
actions = {
|
||||
'element-web_yarn': {
|
||||
'command': 'cd ' + element_web_root + ' && yarn install && yarn build',
|
||||
'needs': {
|
||||
'pkg_apt:yarn',
|
||||
},
|
||||
'triggered': True,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue