From 30f7da48732fee28d77378b1881a58e78d6635b3 Mon Sep 17 00:00:00 2001 From: Tommaso Bailetti Date: Mon, 30 Oct 2023 11:23:04 +0100 Subject: [PATCH] feat: added ns8-user-manager ui to image --- build-images.sh | 9 +++++++++ renovate.json | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/build-images.sh b/build-images.sh index 142ab47..e0a458e 100644 --- a/build-images.sh +++ b/build-images.sh @@ -31,6 +31,15 @@ else fi buildah add "${container}" imageroot /imageroot + +# Copy ui of ns8-user-manager +user_manager_version=v0.1.0 +mkdir -p ns8-user-manager +trap 'rm -r ns8-user-manager' EXIT +wget -q -O - https://github.com/NethServer/ns8-user-manager/releases/download/${user_manager_version}/ns8-user-manager-${user_manager_version}.tar.gz | tar xfz - -C ns8-user-manager +# suffix "/" makes the copy from the content of the directory +buildah copy "${container}" ns8-user-manager/ /imageroot/api-moduled/public/ + buildah add "${container}" ui/dist /ui buildah config --entrypoint=/ \ --label='org.nethserver.authorizations=ldapproxy@node:accountprovider cluster:accountprovider traefik@node:routeadm' \ diff --git a/renovate.json b/renovate.json index 8ed151f..d9c5127 100644 --- a/renovate.json +++ b/renovate.json @@ -36,6 +36,16 @@ ], "depNameTemplate": "node", "datasourceTemplate": "docker" + }, + { + "fileMatch": [ + "build-images.sh" + ], + "matchStrings": [ + "user_manager_version=(?.*?)\\n" + ], + "depNameTemplate": "NethServer/ns8-user-manager", + "datasourceTemplate": "github-releases" } ], "packageRules": [