bundlewrap/bundles/phanpy/items.py
2023-10-08 16:54:34 +02:00

29 lines
574 B
Python

repo.libs.tools.require_bundle(node, 'nodejs')
directories = {
'/opt/phanpy': {}
}
git_deploy = {
'/opt/phanpy': {
'rev': node.metadata.get('phanpy/version'),
'repo': 'https://github.com/cheeaun/phanpy.git',
'triggers': {
'action:phanpy_build',
},
},
}
actions = {
'phanpy_build': {
'command': ' && '.join([
'cd /opt/phanpy',
'npm install ',
'npm run build',
]),
'needs': {
'pkg_apt:nodejs',
},
'triggered': True,
},
}