ci: reuse active app list in woodpecker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user