hedgedoc new release

This commit is contained in:
Sophie Schiller 2023-06-04 23:17:55 +02:00
parent 0ca35a2e7e
commit d17b146476
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,5 @@
from semver import compare
repo.libs.tools.require_bundle(node, 'nodejs')
git_deploy = {
@ -47,6 +49,21 @@ directories = {
},
}
if compare(node.metadata.get('hedgedoc/version'), '1.9.7') <= 0:
command = ' && '.join([
'cd /opt/hedgedoc',
'yarn install --production=true --pure-lockfile --ignore-scripts',
'yarn install --ignore-scripts',
'yarn build',
])
elif compare(node.metadata.get('hedgedoc/version'), '1.9.9') >= 0:
command = ' && '.join([
'cd /opt/hedgedoc',
'bin/setup',
'yarn install --immutable',
'yarn build',
])
actions = {
'hedgedoc_yarn': {
'command': ' && '.join([

View File

@ -80,7 +80,7 @@ nodes['htz-cloud.miniserver'] = {
},
},
'hedgedoc': {
'version': '1.9.7',
'version': '1.9.8',
'config': {
'production': {
'allowAnonymousEdits': True,

View File

@ -1,3 +1,4 @@
bundlewrap>=4.16.0
PyNaCl
bundlewrap-pass
semver