mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
commit
d7051aa491
5 changed files with 23 additions and 9 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features.
|
Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features.
|
||||||
|
|
||||||
**Shipped version:** 14.0.0~ynh1
|
**Shipped version:** 14.0.4~ynh1
|
||||||
|
|
||||||
**Demo:** https://gitlab.com/explore
|
**Demo:** https://gitlab.com/explore
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
|
|
||||||
Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD.
|
Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD.
|
||||||
|
|
||||||
**Version incluse :** 14.0.0~ynh1
|
**Version incluse :** 14.0.4~ynh1
|
||||||
|
|
||||||
**Démo :** https://gitlab.com/explore
|
**Démo :** https://gitlab.com/explore
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "GitLab",
|
"name": "GitLab",
|
||||||
"id": "gitlab",
|
"id": "gitlab",
|
||||||
"packaging_format": 1,
|
"packaging_format": 1,
|
||||||
"version": "14.0.0~ynh1",
|
"version": "14.0.4~ynh1",
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features.",
|
"en": "Git-repository manager providing wiki, issue-tracking and CI/CD pipeline features.",
|
||||||
"fr": "Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD."
|
"fr": "Gestionnaire de dépôts Git proposant des fonctionnalités de wiki, suivi de bugs et de pipeline CI/CD."
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
gitlab_version="14.0.0"
|
gitlab_version="14.0.4"
|
||||||
|
|
||||||
# sha256sum found here: https://packages.gitlab.com/gitlab
|
# sha256sum found here: https://packages.gitlab.com/gitlab
|
||||||
gitlab_debian_version="buster"
|
gitlab_debian_version="buster"
|
||||||
|
|
||||||
gitlab_x86_64_buster_source_sha256="fc395f2f6150ab081dfb5ab012c2273be4d15d3d0dd4b9cc07aa793dcf27c67b"
|
gitlab_x86_64_buster_source_sha256="110157284f221cd0881be3ff13698d29e4ab7727dd2d6db61f1d85e446b4527f"
|
||||||
|
|
||||||
gitlab_arm64_buster_source_sha256="aa2924f935e02e06f52320795e2d4839181ea0d0d410786f44ae4df86d2fc90d"
|
gitlab_arm64_buster_source_sha256="7aded3999c34ed7927e63da481a09179488647735c235927bb6193af0aa77131"
|
||||||
|
|
||||||
gitlab_arm_buster_source_sha256="3b52c9d414974b2c6c639f881e2c736c9790eac16fcb070ce82bcce52b8958a2"
|
gitlab_arm_buster_source_sha256=""
|
||||||
|
|
||||||
architecture=$(ynh_app_setting_get --app="$app" --key=architecture)
|
architecture=$(ynh_app_setting_get --app="$app" --key=architecture)
|
||||||
|
|
||||||
|
@ -18,6 +18,11 @@ if [ "$architecture" = "x86-64" ]; then
|
||||||
elif [ "$architecture" = "arm64" ]; then
|
elif [ "$architecture" = "arm64" ]; then
|
||||||
gitlab_source_sha256=$gitlab_arm64_buster_source_sha256
|
gitlab_source_sha256=$gitlab_arm64_buster_source_sha256
|
||||||
elif [ "$architecture" = "arm" ]; then
|
elif [ "$architecture" = "arm" ]; then
|
||||||
|
# If the version for arm doesn't exist, then use an older one
|
||||||
|
if [ -z "$gitlab_arm_buster_source_sha256" ]; then
|
||||||
|
gitlab_version="14.0.0"
|
||||||
|
gitlab_arm_buster_source_sha256="3b52c9d414974b2c6c639f881e2c736c9790eac16fcb070ce82bcce52b8958a2"
|
||||||
|
fi
|
||||||
gitlab_source_sha256=$gitlab_arm_buster_source_sha256
|
gitlab_source_sha256=$gitlab_arm_buster_source_sha256
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,8 @@ version=$2
|
||||||
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
gitlab_directory="$( cd "$( dirname "$current_dir/$1" )/../../" >/dev/null 2>&1 && pwd )"
|
gitlab_directory="$( cd "$( dirname "$current_dir/$1" )/../../" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
sed -i -e "s/gitlab_version=\"[^0-9.]*[0-9.]*[0-9.]\"/gitlab_version=\"$version\"/" $gitlab_directory/scripts/upgrade.d/$file
|
# Only replace the first occurrence
|
||||||
|
sed -i -e "0,/gitlab_version=\"[^0-9.]*[0-9.]*[0-9.]\"/s//gitlab_version=\"$version\"/" $gitlab_directory/scripts/upgrade.d/$file
|
||||||
|
|
||||||
# x86_64
|
# x86_64
|
||||||
url=https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/buster/gitlab-ce_$version-ce.0_amd64.deb
|
url=https://packages.gitlab.com/gitlab/gitlab-ce/packages/debian/buster/gitlab-ce_$version-ce.0_amd64.deb
|
||||||
|
@ -42,7 +43,15 @@ new_sha256=$(curl -s $url | sed -n '/SHA256$/,/<\/tr>$/{ /SHA256$/d; /<\/tr>$/d;
|
||||||
echo url: $url
|
echo url: $url
|
||||||
echo sha256: $new_sha256
|
echo sha256: $new_sha256
|
||||||
|
|
||||||
sed -i -e "s/gitlab_arm_buster_source_sha256=\".*\"/gitlab_arm_buster_source_sha256=\"$new_sha256\"/" $gitlab_directory/scripts/upgrade.d/$file
|
# Only replace the first occurrence
|
||||||
|
sed -i -e "0,/gitlab_arm_buster_source_sha256=\".*\"/s//gitlab_arm_buster_source_sha256=\"$new_sha256\"/" $gitlab_directory/scripts/upgrade.d/$file
|
||||||
|
|
||||||
|
# if new_sha256 exists for arm, then replace the backup version/sha256 for this arch
|
||||||
|
if [ -n "$new_sha256" ]; then
|
||||||
|
sed -i -e "s/gitlab_version=\"[^0-9.]*[0-9.]*[0-9.]\"/gitlab_version=\"$version\"/" $gitlab_directory/scripts/upgrade.d/$file
|
||||||
|
sed -i -e "s/gitlab_arm_buster_source_sha256=\".*\"/gitlab_arm_buster_source_sha256=\"$new_sha256\"/" $gitlab_directory/scripts/upgrade.d/$file
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ "$(basename $file)" == upgrade.last.sh ]]; then
|
if [[ "$(basename $file)" == upgrade.last.sh ]]; then
|
||||||
# Update manifest
|
# Update manifest
|
||||||
|
|
Loading…
Reference in a new issue