bw/matrix-dimension get all the things
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Sophie Schiller 2021-07-04 21:11:23 +02:00
parent 3fd20de161
commit 07994de66c

View file

@ -10,20 +10,20 @@ directories = {
git_deploy = { git_deploy = {
node.metadata['matrix-dimension']['install_dir']: { node.metadata['matrix-dimension']['install_dir']: {
'rev': node.metadata.get('matrix-dimension', {}).get('version', 'master'), # doesn't have releases yet 'rev': node.metadata.get('matrix-dimension/version', 'master'), # doesn't have releases yet
'repo': 'https://github.com/turt2live/matrix-dimension.git', 'repo': 'https://github.com/turt2live/matrix-dimension.git',
'triggers': { 'triggers': {
'action:matrix_dimension_build', 'action:matrix_dimension_build',
}, },
'needs': { 'needs': {
'directory:{}'.format(node.metadata['matrix-dimension']['install_dir']), 'directory:{}'.format(node.metadatai.get('matrix-dimension/install_dir'),
'directory:{}'.format(node.metadata['matrix-dimension']['data_dir']), 'directory:{}'.format(node.metadata.get('matrix-dimension/data_dir'),
}, },
}, },
} }
files = { files = {
'{}/config/production.yaml'.format(node.metadata['matrix-dimension']['install_dir']): { '{}/config/production.yaml'.format(node.metadata.get('matrix-dimension/install_dir'): {
'owner': 'matrix-dimension', 'owner': 'matrix-dimension',
'group': 'matrix-dimension', 'group': 'matrix-dimension',
'content_type': 'mako', 'content_type': 'mako',
@ -32,7 +32,7 @@ files = {
}, },
'needs': { 'needs': {
'action:element-web_yarn', 'action:element-web_yarn',
'directory:{}'.format(node.metadata['matrix-dimension']['install_dir']), 'directory:{}'.format(node.metadata.get('matrix-dimension/install_dir'),
}, },
'triggers': { 'triggers': {
'svc_systemd:matrix-dimension:restart', 'svc_systemd:matrix-dimension:restart',
@ -52,7 +52,7 @@ files = {
actions = { actions = {
'matrix_dimension_build': { 'matrix_dimension_build': {
'command': 'cd ' + node.metadata['matrix-dimension']['install_dir'] + ' && sudo -u matrix-dimension npm install && sudo -u matrix-dimension npm run build', 'command': 'cd ' + node.metadata.get('matrix-dimension/install_dir') + ' && sudo -u matrix-dimension npm install && sudo -u matrix-dimension npm run build',
'needs': { 'needs': {
'pkg_apt:nodejs', 'pkg_apt:nodejs',
}, },
@ -67,7 +67,7 @@ svc_systemd = {
'matrix-dimension': { 'matrix-dimension': {
'needs': { 'needs': {
'action:matrix_dimension_build', 'action:matrix_dimension_build',
'file:{}/config/production.yaml'.format(node.metadata['matrix-dimension']['install_dir']), 'file:{}/config/production.yaml'.format(node.metadata.get('matrix-dimension/install_dir'),
'postgres_db:matrix-dimension', 'postgres_db:matrix-dimension',
'postgres_role:matrix-dimension', 'postgres_role:matrix-dimension',
}, },