1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nocodb_ynh.git synced 2024-09-03 19:56:01 +02:00

Merge pull request #79 from YunoHost-Apps/testing

Testing
This commit is contained in:
tituspijean 2023-07-29 20:20:37 +02:00 committed by GitHub
commit b1d6a5f45a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 32 additions and 25 deletions

View file

@ -17,7 +17,7 @@
current_version=$(cat manifest.json | jq -j '.version|split("~")[0]') current_version=$(cat manifest.json | jq -j '.version|split("~")[0]')
repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1]') repo=$(cat manifest.json | jq -j '.upstream.code|split("https://github.com/")[1]')
# Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions) # Some jq magic is needed, because the latest upstream release is not always the latest version (e.g. security patches for older versions)
version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.[] | select( .prerelease != true ) | .tag_name' | sort -V | tail -1) version=$(curl --silent "https://api.github.com/repos/$repo/releases" | jq -r '.[] | select( .prerelease != true ) | select( .name | contains("start") or contains("rc") or contains("beta") or contains("alpha") | not ) | .tag_name' | sort -V | tail -1)
sha=$(curl --silent "https://api.github.com/repos/nocodb/nocodb-seed/commits/main" | jq -r '.sha') sha=$(curl --silent "https://api.github.com/repos/nocodb/nocodb-seed/commits/main" | jq -r '.sha')
# Later down the script, we assume the version has only digits and dots # Later down the script, we assume the version has only digits and dots

View file

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Fetch the source code - name: Fetch the source code
uses: actions/checkout@v2 uses: actions/checkout@v3
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Run the updater script - name: Run the updater script
@ -33,7 +33,7 @@ jobs:
- name: Create Pull Request - name: Create Pull Request
id: cpr id: cpr
if: ${{ env.PROCEED == 'true' }} if: ${{ env.PROCEED == 'true' }}
uses: peter-evans/create-pull-request@v3 uses: peter-evans/create-pull-request@v4
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Update to version ${{ env.VERSION }} commit-message: Update to version ${{ env.VERSION }}

View file

@ -6,6 +6,7 @@ It shall NOT be edited by hand.
# NocoDB for YunoHost # NocoDB for YunoHost
[![Integration level](https://dash.yunohost.org/integration/nocodb.svg)](https://dash.yunohost.org/appci/app/nocodb) ![Working status](https://ci-apps.yunohost.org/ci/badges/nocodb.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/nocodb.maintain.svg) [![Integration level](https://dash.yunohost.org/integration/nocodb.svg)](https://dash.yunohost.org/appci/app/nocodb) ![Working status](https://ci-apps.yunohost.org/ci/badges/nocodb.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/nocodb.maintain.svg)
[![Install NocoDB with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=nocodb) [![Install NocoDB with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=nocodb)
*[Lire ce readme en français.](./README_fr.md)* *[Lire ce readme en français.](./README_fr.md)*
@ -27,7 +28,7 @@ NocoDB is an open source NoCode platform that turns any database into a smart sp
*(from NocoDB's website)* *(from NocoDB's website)*
**Shipped version:** 0.100.1~ynh1 **Shipped version:** 0.109.5~ynh1
**Demo:** https://www.nocodb.com/demos **Demo:** https://www.nocodb.com/demos

View file

@ -5,15 +5,16 @@ It shall NOT be edited by hand.
# NocoDB pour YunoHost # NocoDB pour YunoHost
[![Niveau d'intégration](https://dash.yunohost.org/integration/nocodb.svg)](https://dash.yunohost.org/appci/app/nocodb) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/nocodb.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/nocodb.maintain.svg) [![Niveau dintégration](https://dash.yunohost.org/integration/nocodb.svg)](https://dash.yunohost.org/appci/app/nocodb) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/nocodb.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/nocodb.maintain.svg)
[![Installer NocoDB avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=nocodb) [![Installer NocoDB avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=nocodb)
*[Read this readme in english.](./README.md)* *[Read this readme in english.](./README.md)*
> *Ce package vous permet d'installer NocoDB rapidement et simplement sur un serveur YunoHost. > *Ce package vous permet dinstaller NocoDB rapidement et simplement sur un serveur YunoHost.
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment linstaller et en profiter.*
## Vue d'ensemble ## Vue densemble
NocoDB is an open source NoCode platform that turns any database into a smart spreadsheet, alternative to Airtable. NocoDB is an open source NoCode platform that turns any database into a smart spreadsheet, alternative to Airtable.
@ -27,13 +28,13 @@ NocoDB is an open source NoCode platform that turns any database into a smart sp
*(from NocoDB's website)* *(from NocoDB's website)*
**Version incluse :** 0.100.1~ynh1 **Version incluse :** 0.109.5~ynh1
**Démo :** https://www.nocodb.com/demos **Démo :** https://www.nocodb.com/demos
## Captures d'écran ## Captures décran
![Capture d'écran de NocoDB](./doc/screenshots/example.png) ![Capture décran de NocoDB](./doc/screenshots/example.png)
## Avertissements / informations importantes ## Avertissements / informations importantes
@ -43,8 +44,8 @@ NocoDB has its own authentication system which does not rely on YunoHost's SSO o
## Documentations et ressources ## Documentations et ressources
* Site officiel de l'app : <https://www.nocodb.com> * Site officiel de lapp : <https://www.nocodb.com>
* Dépôt de code officiel de l'app : <https://github.com/nocodb/nocodb> * Dépôt de code officiel de lapp : <https://github.com/nocodb/nocodb>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_nocodb> * Documentation YunoHost pour cette app : <https://yunohost.org/app_nocodb>
* Signaler un bug : <https://github.com/YunoHost-Apps/nocodb_ynh/issues> * Signaler un bug : <https://github.com/YunoHost-Apps/nocodb_ynh/issues>
@ -60,4 +61,4 @@ ou
sudo yunohost app upgrade nocodb -u https://github.com/YunoHost-Apps/nocodb_ynh/tree/testing --debug sudo yunohost app upgrade nocodb -u https://github.com/YunoHost-Apps/nocodb_ynh/tree/testing --debug
``` ```
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps> **Plus dinfos sur le packaging dapplications :** <https://yunohost.org/packaging_apps>

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/nocodb/nocodb-seed/archive/3cdeeb7d0d130850177b47c6215a84f6b4a34548.zip SOURCE_URL=https://github.com/nocodb/nocodb-seed/archive/2b5afac041b038009d9f90fc73ed3f5c987f3a27.zip
SOURCE_SUM=63f30dd9892e4558140c5a5ffc62ed7aa613aca05fddeb68c6ba153d5043c8cb SOURCE_SUM=1861cb06ee6bf0e3aa1c219b4b3bc540db88375287ae1df9fffc2b5c07b1d953
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip SOURCE_FORMAT=zip
SOURCE_EXTRACT=true SOURCE_EXTRACT=true

View file

@ -1,5 +1,7 @@
NODE_ENV=dev NODE_ENV=production
PORT=__PORT__ PORT=__PORT__
NC_DB=mysql2://localhost:3306?u=__DB_USER__&p=__DB_PWD__&d=__DB_NAME__ NC_DB=mysql2://localhost:3306?u=__DB_USER__&p=__DB_PWD__&d=__DB_NAME__
NC_AUTH_JWT_SECRET=__JWT_SECRET__ NC_AUTH_JWT_SECRET=__JWT_SECRET__
NC_DISABLE_TELE=1 NC_DISABLE_TELE=1
NC_PUBLIC_URL=https://__DOMAIN__
NC_REQUEST_BODY_SIZE=104857600

View file

@ -10,6 +10,8 @@ location __PATH__/ {
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection; proxy_set_header Connection $http_connection;
client_max_body_size 100M;
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }

View file

@ -6,7 +6,7 @@
"en": "No-code platform that turns any database into a smart spreadsheet", "en": "No-code platform that turns any database into a smart spreadsheet",
"fr": "Plateform sans code qui transforme toute base de données en un tableur intelligent." "fr": "Plateform sans code qui transforme toute base de données en un tableur intelligent."
}, },
"version": "0.100.1~ynh1", "version": "0.109.5~ynh1",
"url": "https://www.nocodb.com", "url": "https://www.nocodb.com",
"upstream": { "upstream": {
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",

View file

@ -115,7 +115,7 @@ fi
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX

View file

@ -130,7 +130,7 @@ pushd $final_path
ynh_print_info --message="...Done! Installing NocoDB now..." ynh_print_info --message="...Done! Installing NocoDB now..."
fi fi
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --force ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --save nocodb@$(ynh_app_upstream_version)
popd popd
#================================================= #=================================================
@ -174,7 +174,7 @@ yunohost service add $app --description="$app daemon, turns any database into a
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service # Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started"
#================================================= #=================================================
# SETUP SSOWAT # SETUP SSOWAT

View file

@ -125,7 +125,7 @@ yunohost service add $app --description="$app daemon, turns any database into a
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started"
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View file

@ -118,7 +118,8 @@ pushd $final_path
ynh_print_info --message="...Done! Installing NocoDB now..." ynh_print_info --message="...Done! Installing NocoDB now..."
fi fi
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --force ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm uninstall nocodb
ynh_exec_warn_less ynh_exec_as $app $ynh_node_load_PATH NODE_ENV="production" $ynh_npm install --save nocodb@$(ynh_app_upstream_version)
popd popd
#================================================= #=================================================
@ -151,7 +152,7 @@ yunohost service add $app --description="$app daemon, turns any database into a
#================================================= #=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Visit : localhost:" ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="application successfully started"
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX