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') repo.libs.tools.require_bundle(node, 'nodejs')
git_deploy = { 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 = { actions = {
'hedgedoc_yarn': { 'hedgedoc_yarn': {
'command': ' && '.join([ 'command': ' && '.join([

View file

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

View file

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