Update file content
This commit is contained in:
parent
5ed9ead855
commit
f0cceb3354
12
.drone.yml
12
.drone.yml
|
@ -1,6 +1,6 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: ${serverName} # 服务名成,可与jar包名保持一致
|
name: yd-yunxing-server # 服务名成,可与jar包名保持一致
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -55,14 +55,14 @@ steps:
|
||||||
- docker inspect --type=image yudao-module-infra >/dev/null 2>&1 && docker rmi yudao-module-infra || true
|
- docker inspect --type=image yudao-module-infra >/dev/null 2>&1 && docker rmi yudao-module-infra || true
|
||||||
|
|
||||||
- cd /home/app/build
|
- cd /home/app/build
|
||||||
- cd gateway && docker build -t yudao-gateway:${APP_VERSION} -f ../Dockerfile .
|
- cd gateway && docker build -t yudao-gateway:v1.0 -f ../Dockerfile .
|
||||||
- cd ../system && docker build -t yudao-module-system:${APP_VERSION} -f ../Dockerfile .
|
- cd ../system && docker build -t yudao-module-system:v1.0 -f ../Dockerfile .
|
||||||
- cd ../infra && docker build -t yudao-module-infra:${APP_VERSION} -f ../Dockerfile .
|
- cd ../infra && docker build -t yudao-module-infra:v1.0 -f ../Dockerfile .
|
||||||
|
|
||||||
- name: deploy-with-compose
|
- name: deploy-with-compose
|
||||||
image: docker/compose:1.29.2
|
image: docker/compose:1.29.2
|
||||||
environment:
|
environment:
|
||||||
APP_VERSION: ${APP_VERSION}
|
APP_VERSION: v1.0
|
||||||
volumes:
|
volumes:
|
||||||
- name: build-output
|
- name: build-output
|
||||||
path: /home/app/build
|
path: /home/app/build
|
||||||
|
@ -70,7 +70,7 @@ steps:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- cd /home/app/build
|
- cd /home/app/build
|
||||||
- sed -i "s/${APP_VERSION}/${APP_VERSION}/g" docker-compose.yml
|
- sed -i "s/v1.0/v1.0/g" docker-compose.yml
|
||||||
- docker-compose -f docker-compose.yml up -d
|
- docker-compose -f docker-compose.yml up -d
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue