ci: reuse active app list in woodpecker

This commit is contained in:
lingniu
2026-07-01 12:27:21 +08:00
parent 3d9a520c3c
commit 2deea2d072
2 changed files with 17 additions and 3 deletions

View File

@@ -10,10 +10,11 @@ steps:
- master
- develop
- main
environment:
ACTIVE_APPS: &active_apps "gb32960-ingest-app jt808-ingest-app yutong-mqtt-app vehicle-history-app vehicle-analytics-app"
commands: |
cd $CI_WORKSPACE
ACTIVE_APPS="gb32960-ingest-app jt808-ingest-app yutong-mqtt-app vehicle-history-app vehicle-analytics-app"
ACTIVE_MODULES=""
for APP_NAME in $ACTIVE_APPS; do
if [ -z "$ACTIVE_MODULES" ]; then
@@ -48,13 +49,13 @@ steps:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
ACTIVE_APPS: *active_apps
ALIYUN_ACR_USERNAME:
from_secret: aliyun_acr_username
ALIYUN_ACR_PASSWORD:
from_secret: aliyun_acr_password
commands: |
cd $CI_WORKSPACE
ACTIVE_APPS="gb32960-ingest-app jt808-ingest-app yutong-mqtt-app vehicle-history-app vehicle-analytics-app"
APP_VERSION=$(cat $CI_WORKSPACE/project_version.txt)
REGISTRY=crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com
NAMESPACE=oneos