add hold (#2)

This commit is contained in:
Mickael Asseline
2022-05-13 16:21:17 +02:00
committed by GitHub
parent aa46cfc797
commit 3d74462cc5
2 changed files with 13 additions and 5 deletions

View File

@@ -54,12 +54,20 @@ for filename in sorted(glob.glob("composes-files/*.y*ml")):
dataenv=line[3:-1].split(': ', 1)
envtemp["name"] = dataenv[0]
try:
envdesctotal = dataenv[1].split(' (')
envdesctotal = re.split('( [', dataenv[1])
envdesc = envdesctotal[1]
envhold = envdesctotal[2]
envtemp["label"] = envdesctotal[0]
envtemp["description"] = envdesc[:-1]
envtemp["default"] = envhold[:-1]
except:
envtemp["label"] = dataenv[1]
try:
envdesctotal = dataenv[1].split(' (')
envdesc = envdesctotal[1]
envtemp["label"] = envdesctotal[0]
envtemp["description"] = envdesc[:-1]
except:
envtemp["label"] = dataenv[1]
env.append(envtemp)
if data:
repository = {

View File

@@ -9,10 +9,10 @@
#& platform: linux
#& logo: https://d33wubrfki0l68.cloudfront.net/62334572e03c001939ed509a2a1f1009dd9bdde3/a7ee8/assets/images/tool-icons/dillinger.png
#% SERVICE: Name of the service (No spaces or points)
#% DATA_LOCATION: Data localization (Example: /apps/service)
#% SERVICE: Name of the service (No spaces or points) [dillinger]
#% DATA_LOCATION: Data localization (Example: /apps/service) [/_data/apps]
#% URL: Service URL (Example: service.papamica.fr or service.com)
#% NETWORK: Your Traefik network (Example: proxy)
#% NETWORK: Your Traefik network (Example: proxy) [proxy]
# Work with Portainer
version: "2"