mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 18:40:41 +08:00
Fix: multi-config auto-run in deploy.yaml
This commit is contained in:
@@ -149,6 +149,7 @@ Deploy:
|
|||||||
# 'https://path.to.your/cdn' to use custom cdn
|
# 'https://path.to.your/cdn' to use custom cdn
|
||||||
CDN: false
|
CDN: false
|
||||||
# --run. Auto-run specified config when startup
|
# --run. Auto-run specified config when startup
|
||||||
# 'default' null
|
# 'null' default no specified config
|
||||||
# 'alas' for default config
|
# '["alas"]' specified "alas" config
|
||||||
|
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||||
RUN: null
|
RUN: null
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ Deploy:
|
|||||||
# 'https://path.to.your/cdn' to use custom cdn
|
# 'https://path.to.your/cdn' to use custom cdn
|
||||||
CDN: false
|
CDN: false
|
||||||
# --run. Auto-run specified config when startup
|
# --run. Auto-run specified config when startup
|
||||||
# 'default' null
|
# 'null' default no specified config
|
||||||
# 'alas' for default config
|
# '["alas"]' specified "alas" config
|
||||||
|
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||||
RUN: null
|
RUN: null
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ Deploy:
|
|||||||
# 'https://path.to.your/cdn' to use custom cdn
|
# 'https://path.to.your/cdn' to use custom cdn
|
||||||
CDN: false
|
CDN: false
|
||||||
# --run. Auto-run specified config when startup
|
# --run. Auto-run specified config when startup
|
||||||
# 'default' null
|
# 'null' default no specified config
|
||||||
# 'alas' for default config
|
# '["alas"]' specified "alas" config
|
||||||
|
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||||
RUN: null
|
RUN: null
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ Deploy:
|
|||||||
# 'https://path.to.your/cdn' to use custom cdn
|
# 'https://path.to.your/cdn' to use custom cdn
|
||||||
CDN: false
|
CDN: false
|
||||||
# --run. Auto-run specified config when startup
|
# --run. Auto-run specified config when startup
|
||||||
# 'default' null
|
# 'null' default no specified config
|
||||||
# 'alas' for default config
|
# '["alas"]' specified "alas" config
|
||||||
|
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||||
RUN: null
|
RUN: null
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ Deploy:
|
|||||||
# 'https://path.to.your/cdn' to use custom cdn
|
# 'https://path.to.your/cdn' to use custom cdn
|
||||||
CDN: false
|
CDN: false
|
||||||
# --run. Auto-run specified config when startup
|
# --run. Auto-run specified config when startup
|
||||||
# 'default' null
|
# 'null' default no specified config
|
||||||
# 'alas' for default config
|
# '["alas"]' specified "alas" config
|
||||||
|
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||||
RUN: null
|
RUN: null
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ Deploy:
|
|||||||
# 'https://path.to.your/cdn' to use custom cdn
|
# 'https://path.to.your/cdn' to use custom cdn
|
||||||
CDN: false
|
CDN: false
|
||||||
# --run. Auto-run specified config when startup
|
# --run. Auto-run specified config when startup
|
||||||
# 'default' null
|
# 'null' default no specified config
|
||||||
# 'alas' for default config
|
# '["alas"]' specified "alas" config
|
||||||
|
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||||
RUN: null
|
RUN: null
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ Deploy:
|
|||||||
# 'https://path.to.your/cdn' to use custom cdn
|
# 'https://path.to.your/cdn' to use custom cdn
|
||||||
CDN: false
|
CDN: false
|
||||||
# --run. Auto-run specified config when startup
|
# --run. Auto-run specified config when startup
|
||||||
# 'default' null
|
# 'null' default no specified config
|
||||||
# 'alas' for default config
|
# '["alas"]' specified "alas" config
|
||||||
|
# '["alas","alas2"]' specified "alas" "alas2" configs
|
||||||
RUN: null
|
RUN: null
|
||||||
|
|||||||
@@ -1201,7 +1201,9 @@ def app():
|
|||||||
if args.run:
|
if args.run:
|
||||||
runs = args.run
|
runs = args.run
|
||||||
elif State.deploy_config.RUN:
|
elif State.deploy_config.RUN:
|
||||||
runs = [State.deploy_config.RUN]
|
# TODO: refactor poor_yaml_read() to support list
|
||||||
|
tmp = State.deploy_config.RUN.split(",")
|
||||||
|
runs = [l.strip("['\"]") for l in tmp if len(l)]
|
||||||
instances: List[str] = runs
|
instances: List[str] = runs
|
||||||
|
|
||||||
logger.hr("Webui configs")
|
logger.hr("Webui configs")
|
||||||
|
|||||||
Reference in New Issue
Block a user