|
|
@@ -39,16 +39,17 @@ steps:
|
|
|
# - ${DRONE_COMMIT}
|
|
|
# - v1
|
|
|
# - latest
|
|
|
+
|
|
|
- name: scp_files
|
|
|
image: appleboy/drone-scp
|
|
|
settings:
|
|
|
- host: 172.17.0.1
|
|
|
+ host: 172.16.0.28
|
|
|
username: root
|
|
|
- password: $jgkj001
|
|
|
+ password: $Jgkj1234
|
|
|
debug: true
|
|
|
target:
|
|
|
- - /www/wwwroot/railway.iamsee.com/release
|
|
|
- - /www/wwwroot/railway.iamsee.com/release
|
|
|
+ - /www/wwwroot/railway.ninecase.top/release
|
|
|
+ - /www/wwwroot/railway.ninecase.top/release
|
|
|
source:
|
|
|
- railway-admin/target/railway-admin.jar
|
|
|
- Dockerfile
|
|
|
@@ -56,25 +57,25 @@ steps:
|
|
|
- name: deploy
|
|
|
image: appleboy/drone-ssh
|
|
|
settings:
|
|
|
- host: drone.iamsee.com
|
|
|
+ host: 172.16.0.28
|
|
|
username: root
|
|
|
- password: $jgkj001
|
|
|
+ password: $Jgkj1234
|
|
|
debug: true
|
|
|
script:
|
|
|
- export PATH=/usr/local/bin:$PATH
|
|
|
- echo $PATH
|
|
|
- export LANG="en_US.UTF-8"
|
|
|
- pkill -9 java
|
|
|
- - nohup java -jar /www/wwwroot/railway.iamsee.com/release/railway-admin/target/railway-admin.jar --spring.profiles.active=dev -Ddruid.mysql.usePingMethod=false > /www/wwwroot/railway.iamsee.com/out.log 2>&1 &
|
|
|
+ - nohup java -jar /www/wwwroot/railway.ninecase.top/release/railway-admin/target/railway-admin.jar --spring.profiles.active=dev -Ddruid.mysql.usePingMethod=false > /www/wwwroot/railway.ninecase.top/out.log 2>&1 &
|
|
|
- name: deploy-build-image
|
|
|
image: appleboy/drone-ssh
|
|
|
settings:
|
|
|
- host: gdsc.ninecase.top
|
|
|
+ host: 172.16.0.28
|
|
|
username: root
|
|
|
- password: $jgkj001
|
|
|
+ password: $Jgkj1234
|
|
|
debug: true
|
|
|
script:
|
|
|
- - cd /www/wwwroot/railway.iamsee.com/release
|
|
|
+ - cd /www/wwwroot/railway.ninecase.top/release
|
|
|
- docker build -t iamsee/railway-admin:1.0.0 .
|
|
|
- docker save -o railway-admin@1.0.0.tar iamsee/railway-admin:1.0.0
|
|
|
trigger:
|