feat: add yutong mqtt and xinda push apps
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was canceled
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was canceled
This commit is contained in:
@@ -13,7 +13,7 @@ steps:
|
||||
commands: |
|
||||
cd $CI_WORKSPACE
|
||||
|
||||
mvn -B -ntp -am -pl :gb32960-ingest-app,:jt808-ingest-app,:vehicle-history-app,:vehicle-analytics-app package -DskipTests
|
||||
mvn -B -ntp -am -pl :gb32960-ingest-app,:jt808-ingest-app,:yutong-mqtt-app,:xinda-push-app,:vehicle-history-app,:vehicle-analytics-app package -DskipTests
|
||||
|
||||
BRANCH_NAME=$(echo ${CI_COMMIT_BRANCH:-local} | tr / -)
|
||||
PROJECT_VERSION=$(mvn -q -DforceStdout help:evaluate -Dexpression=project.version)
|
||||
@@ -132,6 +132,78 @@ steps:
|
||||
|
||||
docker push $IMAGE
|
||||
|
||||
- name: docker-build-yutong-mqtt-app
|
||||
image: docker:24.0.5-cli
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
- manual
|
||||
branch:
|
||||
- master
|
||||
- develop
|
||||
- main
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
ALIYUN_ACR_USERNAME:
|
||||
from_secret: aliyun_acr_username
|
||||
ALIYUN_ACR_PASSWORD:
|
||||
from_secret: aliyun_acr_password
|
||||
commands: |
|
||||
cd $CI_WORKSPACE
|
||||
APP_NAME=yutong-mqtt-app
|
||||
APP_VERSION=$(cat $CI_WORKSPACE/project_version.txt)
|
||||
IMAGE=crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com/oneos/$APP_NAME:$APP_VERSION
|
||||
|
||||
docker build \
|
||||
--build-arg APP_NAME=$APP_NAME \
|
||||
--build-arg APP_VERSION=$APP_VERSION \
|
||||
-t $IMAGE .
|
||||
|
||||
printf '%s' "$ALIYUN_ACR_PASSWORD" | docker login \
|
||||
--username "$ALIYUN_ACR_USERNAME" \
|
||||
--password-stdin \
|
||||
crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com
|
||||
|
||||
docker push $IMAGE
|
||||
|
||||
- name: docker-build-xinda-push-app
|
||||
image: docker:24.0.5-cli
|
||||
when:
|
||||
event:
|
||||
- push
|
||||
- pull_request
|
||||
- manual
|
||||
branch:
|
||||
- master
|
||||
- develop
|
||||
- main
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
ALIYUN_ACR_USERNAME:
|
||||
from_secret: aliyun_acr_username
|
||||
ALIYUN_ACR_PASSWORD:
|
||||
from_secret: aliyun_acr_password
|
||||
commands: |
|
||||
cd $CI_WORKSPACE
|
||||
APP_NAME=xinda-push-app
|
||||
APP_VERSION=$(cat $CI_WORKSPACE/project_version.txt)
|
||||
IMAGE=crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com/oneos/$APP_NAME:$APP_VERSION
|
||||
|
||||
docker build \
|
||||
--build-arg APP_NAME=$APP_NAME \
|
||||
--build-arg APP_VERSION=$APP_VERSION \
|
||||
-t $IMAGE .
|
||||
|
||||
printf '%s' "$ALIYUN_ACR_PASSWORD" | docker login \
|
||||
--username "$ALIYUN_ACR_USERNAME" \
|
||||
--password-stdin \
|
||||
crpi-85r4m0ackrm3qpje.cn-shanghai.personal.cr.aliyuncs.com
|
||||
|
||||
docker push $IMAGE
|
||||
|
||||
- name: docker-build-vehicle-analytics-app
|
||||
image: docker:24.0.5-cli
|
||||
when:
|
||||
|
||||
Reference in New Issue
Block a user