Skip to content
Snippets Groups Projects
Verified Commit 65faf444 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

allow using a v in the version number of a git release, because renovate introduces those vs

parent 22d4bd66
No related branches found
No related tags found
1 merge request!297Update dependency zorn-v/nextcloud-social-login to v4.18.1
Pipeline #31286 passed with stages
in 10 minutes and 40 seconds
......@@ -62,11 +62,13 @@ data:
# Apps with a pinned version number are downloaded from GitHub so we can
# update the pin with Renovatebot
if [[ $app_versions =~ '"{{ .name }}":"{{ .version }}"' ]]
desired_version=$(echo "{{ .version }}" | sed 's/^v//')
if [[ $app_versions =~ '"{{ .name }}":"$desired_version"' ]]
then
echo "App {{ .name }} is up-to-date at version {{ .version }}"
else
echo "No match in ${app_versions} for \"{{ .name }}\":\"{{ .version }}\","
echo "No match in ${app_versions} for \"{{ .name }}\":\"rdesired_version\","
echo "Installing app {{ .github_repository }} version '{{ .version }}'"
# Where to install the app
target_directory="/var/www/html/custom_apps"
......@@ -74,7 +76,7 @@ data:
# see https://github.com/helm/helm/issues/5979#issuecomment-518231758
# allows us to use version variable in the release_filename
{{- $_ := set $ "version" .version}}
curl "https://github.com/{{ .github_repository }}/releases/download/v{{ .version }}/{{ tpl .release_filename $ }}" -Lo "{{ .name }}.tar.gz"
curl "https://github.com/{{ .github_repository }}/releases/download/{{ .version }}/{{ tpl .release_filename $ }}" -Lo "{{ .name }}.tar.gz"
# Remove old version of the app
if [[ -d "$target_directory/{{ .name }}" ]]
then
......
---
nextcloud:
debug: false
......@@ -47,7 +46,7 @@ apps:
# Line order is important here for renovatebot! first github_repository,
# then version
github_repository: ONLYOFFICE/onlyoffice-nextcloud
version: 7.5.4
version: v7.5.4
release_filename: onlyoffice.tar.gz
enabled: true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment