From 6751c58c2da1a9d4c39b3faa7221ac856800531b Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 30 Jun 2021 00:30:14 +0200 Subject: [PATCH 01/10] Upgrade to 2021-06-30~ynh1 --- README.md | 2 +- manifest.json | 2 +- scripts/_common.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 98ce024..9c2ca42 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in ## Overview YunoRunner is our own CI runner for YunoHost Apps -**Shipped version:** 2021-03-05 +**Shipped version:** 2021-06-30~ynh1 ## Screenshots diff --git a/manifest.json b/manifest.json index 3530445..11d96a2 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "CI runner of YunoHost", "fr": "Runner d'intégration continue de YunoHost" }, - "version": "2021-03-05~ynh1", + "version": "2021-06-30~ynh1", "url": "https://github.com/YunoHost/yunorunner", "license": "GPL-3.0-or-later", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index 3ecbdc2..732d36c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,7 +9,7 @@ pkg_dependencies="python3-venv python3-dev python3-pip sqlite3" yunorunner_repository="https://github.com/YunoHost/yunorunner" -yunorunner_release="444de3ae11db85294b6839b79b603e2d86b0a662" +yunorunner_release="eda079abcfdddbcefa1ceb863f9224b1cc077eb2" #================================================= # PERSONAL HELPERS From 4b25dedbbe457167f7a525d50c2ee4b079b6fe7a Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 30 Jun 2021 05:08:36 +0200 Subject: [PATCH 02/10] Apply example_ynh make bullseye ready --- check_process | 4 +- conf/nginx.conf | 40 ++++++++++---------- conf/systemd.service | 2 +- doc/.gitkeep | 0 doc/DISCLAIMER.md | 3 ++ doc/screenshots/.gitkeep | 0 doc/screenshots/screenshot1.png | Bin 0 -> 8077 bytes manifest.json | 4 ++ scripts/_common.sh | 2 +- scripts/install | 5 +-- scripts/remove | 1 + scripts/restore | 3 -- scripts/upgrade | 63 +++++++++++++++----------------- 13 files changed, 64 insertions(+), 63 deletions(-) create mode 100644 doc/.gitkeep create mode 100644 doc/DISCLAIMER.md create mode 100644 doc/screenshots/.gitkeep create mode 100644 doc/screenshots/screenshot1.png diff --git a/check_process b/check_process index 03d9e18..8c37801 100644 --- a/check_process +++ b/check_process @@ -2,8 +2,8 @@ ; pre-install sudo git clone https://github.com/YunoHost/CI_package_check /home/CI_package_check ; Manifest - domain="domain.tld" (DOMAIN) - path="/path" (PATH) + domain="domain.tld" + path="/path" ; Checks pkg_linter=1 setup_sub_dir=1 diff --git a/conf/nginx.conf b/conf/nginx.conf index 043af6c..c9a0b99 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,27 +1,29 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - alias __FINALPATH__/; - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } + # Path to source + alias __FINALPATH__/ ; - proxy_pass http://127.0.0.1:__PORT__/; + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; + proxy_pass http://127.0.0.1:__PORT__/; - # Include SSOWAT user panel. - include conf.d/yunohost_panel.conf.inc; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; - location __PATH__/logs { - alias /home/CI_package_check/logs/; - autoindex on; - } - - location __PATH__/badges/ { - alias /home/CI_package_check/badges/; - autoindex on; - } + # Include SSOWAT user panel. + include conf.d/yunohost_panel.conf.inc; + + location __PATH__/logs { + alias /home/CI_package_check/logs/; + autoindex on; + } + + location __PATH__/badges/ { + alias /home/CI_package_check/badges/; + autoindex on; + } } diff --git a/conf/systemd.service b/conf/systemd.service index d7c7185..0921e3d 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple Restart=always User=__APP__ Group=__APP__ -WorkingDirectory=__FINALPATH__ +WorkingDirectory=__FINALPATH__/ ExecStart=__FINALPATH__/venv/bin/python ./run.py [Install] diff --git a/doc/.gitkeep b/doc/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md new file mode 100644 index 0000000..1411346 --- /dev/null +++ b/doc/DISCLAIMER.md @@ -0,0 +1,3 @@ +* Any known limitations, constrains or stuff not working, such as (but not limited to): + * You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the build_CI.sh script before installing YunoRunner + * When YunoRunner is installed, modify the systemd script to add the path of the script analyseCI.sh. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` diff --git a/doc/screenshots/.gitkeep b/doc/screenshots/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/doc/screenshots/screenshot1.png b/doc/screenshots/screenshot1.png new file mode 100644 index 0000000000000000000000000000000000000000..099048dd16404965c944d32ff538218dd35335aa GIT binary patch literal 8077 zcmeHrXH=6-w>G|rs0jGV1E?ri=v6_8^eVk5MGPGcATq884>?6fI!PQu0k8h7sD-u8LNSJuQ0S2nijPeYR-qcM^W<{?=W!POkf3Vr? zIZ`8!bRCfk8%r|Cz11mjUEg&qxnZUzC$tbNhol=Y>|xT-MEplQ`Ck>&!oZL_Tmu|K z-O+tNbuiFdP}nEMy8}@hh&}Y-I3mepFf;B|%tn%lihfpZ$Wy!LKjlgS@6l^Ka#_ds zjiSZ0)%1)^MJJD4cxHpOa_uvzhEqucpC5-dNgiOi+i&-3%4Ex~@cjwZy3GKXrzg@f zUX{4^^VsV|>%mUFsSZZ;!p7ddt%&JIv43ga;lHpR+I8EcNJ{<6_ug-%kD*79E65!# z=ZqpL<=aYGi&Kkc)md^jkxNPL*rOFeJJ+WQ-pXEi0quUapC=GoMbv12T*a3~hBi{< z&BnV8msGs3T1pHCW`LYu_MHC-ql{aTUv}NjDEZ6p!X*voc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h1", "url": "https://github.com/YunoHost/yunorunner", + "upstream": { + "license": "GPL-3.0-or-later", + "code": "https://github.com/YunoHost/yunorunner" + }, "license": "GPL-3.0-or-later", "maintainer": { "name": "" diff --git a/scripts/_common.sh b/scripts/_common.sh index 732d36c..ee77031 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,7 +9,7 @@ pkg_dependencies="python3-venv python3-dev python3-pip sqlite3" yunorunner_repository="https://github.com/YunoHost/yunorunner" -yunorunner_release="eda079abcfdddbcefa1ceb863f9224b1cc077eb2" +yunorunner_release="9cde6e979a59424396659fa934323a677ba8c960" #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index 4cb2ff6..202e137 100644 --- a/scripts/install +++ b/scripts/install @@ -71,7 +71,7 @@ ynh_install_app_dependencies $pkg_dependencies ynh_script_progression --message="Configuring system user..." # Create a system user -ynh_system_user_create --username=$app --home_dir="$final_path" +ynh_system_user_create --username=$app --home_dir=$final_path #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -110,9 +110,6 @@ pushd $final_path python3 -m venv venv venv/bin/pip install --upgrade pip venv/bin/pip install -r requirements-frozen.txt - #Fix current websocket version error (2019-02-14) - venv/bin/pip uninstall -y websockets - venv/bin/pip install 'websockets>=6.0,<7.0' popd #================================================= diff --git a/scripts/remove b/scripts/remove index c561c2c..524c878 100644 --- a/scripts/remove +++ b/scripts/remove @@ -26,6 +26,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path) # REMOVE SERVICE INTEGRATION IN YUNOHOST #================================================= +# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status $app >/dev/null then ynh_script_progression --message="Removing $app service integration..." diff --git a/scripts/restore b/scripts/restore index dc2d712..ff8d889 100644 --- a/scripts/restore +++ b/scripts/restore @@ -94,9 +94,6 @@ pushd $final_path python3 -m venv venv venv/bin/pip install --upgrade pip venv/bin/pip install -r requirements-frozen.txt - #Fix current websocket version error (2019-02-14) - venv/bin/pip uninstall -y websockets - venv/bin/pip install 'websockets>=6.0,<7.0' popd #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 392ee1a..677b0ec 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -28,35 +28,6 @@ ynh_script_progression --message="Checking version..." upgrade_type=$(ynh_check_app_version_changed) -#================================================= -# ENSURE DOWNWARD COMPATIBILITY -#================================================= -ynh_script_progression --message="Ensuring downward compatibility..." - -# If port doesn't exist, create it -if [ -z "$port" ]; then - port=4242 - ynh_app_setting_set --app=$app --key=port --value=$port -fi - -if [[ ! -d "$final_path/.git/" ]] -then - git init "$final_path" - pushd "$final_path" - git remote add origin "$yunorunner_repository" - popd -fi - -# Cleaning legacy permissions -if ynh_legacy_permissions_exists; then - ynh_legacy_permissions_delete_all - - ynh_app_setting_delete --app=$app --key=is_public -fi - -# Remove Pythonz -ynh_secure_remove --file="$final_path/.pythonz" - #================================================= # CLOSE A PORT #================================================= @@ -96,13 +67,42 @@ ynh_script_progression --message="Stopping a systemd service..." ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped YunoRunner CI" +#================================================= +# ENSURE DOWNWARD COMPATIBILITY +#================================================= +ynh_script_progression --message="Ensuring downward compatibility..." + +# If port doesn't exist, create it +if [ -z "$port" ]; then + port=4242 + ynh_app_setting_set --app=$app --key=port --value=$port +fi + +if [[ ! -d "$final_path/.git/" ]] +then + git init "$final_path" + pushd "$final_path" + git remote add origin "$yunorunner_repository" + popd +fi + +# Cleaning legacy permissions +if ynh_legacy_permissions_exists; then + ynh_legacy_permissions_delete_all + + ynh_app_setting_delete --app=$app --key=is_public +fi + +# Remove Pythonz +ynh_secure_remove --file="$final_path/.pythonz" + #================================================= # CREATE DEDICATED USER #================================================= ynh_script_progression --message="Making sure dedicated system user exists..." # Create a dedicated user (if not existing) -ynh_system_user_create --username=$app --home_dir="$final_path" +ynh_system_user_create --username=$app --home_dir=$final_path #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -149,9 +149,6 @@ pushd $final_path python3 -m venv venv venv/bin/pip install --upgrade pip venv/bin/pip install -r requirements-frozen.txt - #Fix current websocket version error (2019-02-14) - venv/bin/pip uninstall -y websockets - venv/bin/pip install 'websockets>=6.0,<7.0' popd #================================================= From 0ad6477f9f8dfc935e48da3f629933012dcd7cc2 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Wed, 30 Jun 2021 03:08:43 +0000 Subject: [PATCH 03/10] Auto-update README --- README.md | 53 ++++++++++++++++++++++++++-------------------------- README_fr.md | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+), 27 deletions(-) create mode 100644 README_fr.md diff --git a/README.md b/README.md index 9c2ca42..e86e59e 100644 --- a/README.md +++ b/README.md @@ -1,52 +1,51 @@ + + # YunoRunner for YunoHost [![Integration level](https://dash.yunohost.org/integration/yunorunner.svg)](https://dash.yunohost.org/appci/app/yunorunner) ![](https://ci-apps.yunohost.org/ci/badges/yunorunner.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/yunorunner.maintain.svg) [![Install YunoRunner with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=yunorunner) -> *This package allows you to install YunoRunner quickly and simply on a YunoHost server. +*[Lire ce readme en français.](./README_fr.md)* + +> *This package allows you to install YunoRunner quickly and simply on a YunoHost server. If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* ## Overview -YunoRunner is our own CI runner for YunoHost Apps + +CI runner of YunoHost **Shipped version:** 2021-06-30~ynh1 + + ## Screenshots -![](https://user-images.githubusercontent.com/30271971/52810447-e06b5600-3092-11e9-9853-fb46e46fda65.PNG) +![](./doc/screenshots/screenshot1.png) -## Demo +## Disclaimers / important information -* [Official demo](https://ci-apps.yunohost.org) +* Any known limitations, constrains or stuff not working, such as (but not limited to): + * You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the build_CI.sh script before installing YunoRunner + * When YunoRunner is installed, modify the systemd script to add the path of the script analyseCI.sh. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` -## YunoHost specific features +## Documentation and resources -#### Supported architectures - -* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/yunorunner.svg)](https://ci-apps.yunohost.org/ci/apps/yunorunner/) -* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/yunorunner.svg)](https://ci-apps-arm.yunohost.org/ci/apps/yunorunner/) - -## Limitations - -* You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the build_CI.sh script before installing YunoRunner -* When YunoRunner is installed, modify the systemd script to add the path of the script analyseCI.sh. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` - -## Links - - * Report a bug: https://github.com/YunoHost-Apps/yunorunner_ynh_core/issues - * App website: https://github.com/YunoHost/yunorunner - * Upstream app repository: https://github.com/YunoHost/yunorunner - * YunoHost website: https://yunohost.org/ - ---- +* Upstream app code repository: https://github.com/YunoHost/yunorunner +* YunoHost documentation for this app: https://yunohost.org/app_yunorunner +* Report a bug: https://github.com/YunoHost-Apps/yunorunner_ynh/issues ## Developer info -Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/yunorunner_ynh_core/tree/testing). +Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/yunorunner_ynh/tree/testing). To try the testing branch, please proceed like that. ``` -sudo yunohost app install https://github.com/YunoHost-Apps/yunorunner_ynh_core/tree/testing --debug +sudo yunohost app install https://github.com/YunoHost-Apps/yunorunner_ynh/tree/testing --debug or -sudo yunohost app upgrade yunorunner -u https://github.com/YunoHost-Apps/yunorunner_ynh_core/tree/testing --debug +sudo yunohost app upgrade yunorunner -u https://github.com/YunoHost-Apps/yunorunner_ynh/tree/testing --debug ``` + +**More info regarding app packaging:** https://yunohost.org/packaging_apps \ No newline at end of file diff --git a/README_fr.md b/README_fr.md new file mode 100644 index 0000000..543f373 --- /dev/null +++ b/README_fr.md @@ -0,0 +1,47 @@ +# YunoRunner pour YunoHost + +[![Niveau d'intégration](https://dash.yunohost.org/integration/yunorunner.svg)](https://dash.yunohost.org/appci/app/yunorunner) ![](https://ci-apps.yunohost.org/ci/badges/yunorunner.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/yunorunner.maintain.svg) +[![Installer YunoRunner avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=yunorunner) + +*[Read this readme in english.](./README.md)* +*[Lire ce readme en français.](./README_fr.md)* + +> *Ce package vous permet d'installer YunoRunner 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.* + +## Vue d'ensemble + +Runner d'intégration continue de YunoHost + +**Version incluse :** 2021-06-30~ynh1 + + + +## Captures d'écran + +![](./doc/screenshots/screenshot1.png) + +## Avertissements / informations importantes + +* Any known limitations, constrains or stuff not working, such as (but not limited to): + * You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the build_CI.sh script before installing YunoRunner + * When YunoRunner is installed, modify the systemd script to add the path of the script analyseCI.sh. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` + +## Documentations et ressources + +* Dépôt de code officiel de l'app : https://github.com/YunoHost/yunorunner +* Documentation YunoHost pour cette app : https://yunohost.org/app_yunorunner +* Signaler un bug : https://github.com/YunoHost-Apps/yunorunner_ynh/issues + +## Informations pour les développeurs + +Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/yunorunner_ynh/tree/testing). + +Pour essayer la branche testing, procédez comme suit. +``` +sudo yunohost app install https://github.com/YunoHost-Apps/yunorunner_ynh/tree/testing --debug +ou +sudo yunohost app upgrade yunorunner -u https://github.com/YunoHost-Apps/yunorunner_ynh/tree/testing --debug +``` + +**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps \ No newline at end of file From b48443c38fb101a967385348c927a456c58e2b03 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 12 Aug 2021 22:45:44 +0200 Subject: [PATCH 04/10] Update DISCLAIMER.md --- doc/DISCLAIMER.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 1411346..75994f3 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,3 +1,4 @@ -* Any known limitations, constrains or stuff not working, such as (but not limited to): - * You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the build_CI.sh script before installing YunoRunner - * When YunoRunner is installed, modify the systemd script to add the path of the script analyseCI.sh. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` +## Limitations + +* You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the `install.sh` script before installing YunoRunner +* When YunoRunner is installed, modify the systemd script to add the path of the script `analyseCI.sh`. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` From fdff5637a376fa388b367e42a0210a6e77026c67 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 22 Sep 2021 19:35:56 +0200 Subject: [PATCH 05/10] Upgrade to 2021-09-22 --- manifest.json | 2 +- scripts/_common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index b8244cf..7ddc6af 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "CI runner of YunoHost", "fr": "Runner d'intégration continue de YunoHost" }, - "version": "2021-06-30~ynh1", + "version": "2021-09-22~ynh1", "url": "https://github.com/YunoHost/yunorunner", "upstream": { "license": "GPL-3.0-or-later", diff --git a/scripts/_common.sh b/scripts/_common.sh index ee77031..88c8417 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,7 +9,7 @@ pkg_dependencies="python3-venv python3-dev python3-pip sqlite3" yunorunner_repository="https://github.com/YunoHost/yunorunner" -yunorunner_release="9cde6e979a59424396659fa934323a677ba8c960" +yunorunner_release="0e87f07e8bcb1f3aee055a694f3c7198e22b4019" #================================================= # PERSONAL HELPERS From 53d823e80dbe59696eef9048cde722da6dbc7f63 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Wed, 22 Sep 2021 17:36:01 +0000 Subject: [PATCH 06/10] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e86e59e..fce253c 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in CI runner of YunoHost -**Shipped version:** 2021-06-30~ynh1 +**Shipped version:** 2021-09-22~ynh1 diff --git a/README_fr.md b/README_fr.md index 543f373..fb9ed08 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Runner d'intégration continue de YunoHost -**Version incluse :** 2021-06-30~ynh1 +**Version incluse :** 2021-09-22~ynh1 From 1118202ec437076e9309af96ef46a3add04fc130 Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Wed, 22 Sep 2021 17:40:00 +0000 Subject: [PATCH 07/10] Auto-update README --- README.md | 7 ++++--- README_fr.md | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fce253c..c644989 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,10 @@ CI runner of YunoHost ## Disclaimers / important information -* Any known limitations, constrains or stuff not working, such as (but not limited to): - * You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the build_CI.sh script before installing YunoRunner - * When YunoRunner is installed, modify the systemd script to add the path of the script analyseCI.sh. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` +## Limitations + +* You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the `install.sh` script before installing YunoRunner +* When YunoRunner is installed, modify the systemd script to add the path of the script `analyseCI.sh`. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` ## Documentation and resources diff --git a/README_fr.md b/README_fr.md index fb9ed08..759029e 100644 --- a/README_fr.md +++ b/README_fr.md @@ -23,9 +23,10 @@ Runner d'intégration continue de YunoHost ## Avertissements / informations importantes -* Any known limitations, constrains or stuff not working, such as (but not limited to): - * You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the build_CI.sh script before installing YunoRunner - * When YunoRunner is installed, modify the systemd script to add the path of the script analyseCI.sh. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` +## Limitations + +* You need to install [CI_package_check](https://github.com/YunoHost/CI_package_check) using the `install.sh` script before installing YunoRunner +* When YunoRunner is installed, modify the systemd script to add the path of the script `analyseCI.sh`. The default systemd is configured to `/home/CI_package_check/analyseCI.sh` ## Documentations et ressources From 7b0c314db7206304d07ac747907366f3cf3eab6f Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 24 Sep 2021 21:39:05 +0200 Subject: [PATCH 08/10] Upgrade to 2021-09-22~ynh2 --- check_process | 4 ++++ manifest.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/check_process b/check_process index 8c37801..b1c6db7 100644 --- a/check_process +++ b/check_process @@ -18,6 +18,8 @@ # upgrade=1 from_commit=7b3acfc9b28b6ed33a1590ae16261d7dd3b5b06a # 2021-03-05~ynh1 upgrade=1 from_commit=f0e9373aa2403bf04f84c67646ac5d34376b7959 + # 2021-09-22~ynh1 + upgrade=1 from_commit=fea498cd83a7da12a102efe2f47397dace3cddda backup_restore=1 multi_instance=1 port_already_use=1 (4242) @@ -33,3 +35,5 @@ Notification=down name=041120 ; commit=f0e9373aa2403bf04f84c67646ac5d34376b7959 name=2021-03-05~ynh1 + ; commit=fea498cd83a7da12a102efe2f47397dace3cddda + name=2021-09-22~ynh1 diff --git a/manifest.json b/manifest.json index 7ddc6af..0cd1b55 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "CI runner of YunoHost", "fr": "Runner d'intégration continue de YunoHost" }, - "version": "2021-09-22~ynh1", + "version": "2021-09-22~ynh2", "url": "https://github.com/YunoHost/yunorunner", "upstream": { "license": "GPL-3.0-or-later", From e8038e4f7dca4649bde55ba22b9a8a528ed514ff Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Fri, 24 Sep 2021 19:39:09 +0000 Subject: [PATCH 09/10] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c644989..aef1686 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in CI runner of YunoHost -**Shipped version:** 2021-09-22~ynh1 +**Shipped version:** 2021-09-22~ynh2 diff --git a/README_fr.md b/README_fr.md index 759029e..07b170d 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Runner d'intégration continue de YunoHost -**Version incluse :** 2021-09-22~ynh1 +**Version incluse :** 2021-09-22~ynh2 From 0b4ced421fb665dcf357521e9eb6dd45ad6c3417 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 5 Oct 2021 19:49:51 +0200 Subject: [PATCH 10/10] Remove alias --- conf/nginx.conf | 3 --- 1 file changed, 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index c9a0b99..9995880 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,9 +1,6 @@ #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; location __PATH__/ { - # Path to source - alias __FINALPATH__/ ; - if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; }