fix(CI): 应用推送到Ubuntu
continuous-integration/drone/push Build encountered an error Details

develop
Yosheng 2023-10-05 21:29:04 +08:00
parent cde03b1615
commit dbae3fbe2e
1 changed files with 5 additions and 7 deletions

View File

@ -29,12 +29,10 @@ steps:
pull: if-not-exists pull: if-not-exists
image: appleboy/drone-ssh image: appleboy/drone-ssh
settings: settings:
host: 192.168.31.104 host: 192.168.31.225
port: 2041 port: 22
username: username: yosheng
from_secret: deploy_username password: jr1831530
password:
from_secret: deploy_password
command_timeout: 2m command_timeout: 2m
script: script:
- source /etc/profile - source /etc/profile
@ -51,7 +49,7 @@ steps:
- sudo docker tag 192.168.31.104:8082/tiamo/user-point-management tiamo/user-point-management:latest - sudo docker tag 192.168.31.104:8082/tiamo/user-point-management tiamo/user-point-management:latest
- sudo docker run --name user-point-management -d -p 29029:5000 tiamo/user-point-management - sudo docker run --name user-point-management -d -p 29029:5000 tiamo/user-point-management
- /usr/local/bin/docker system prune -f - /usr/local/bin/docker system prune -f
- echo docker容器启动成功 - echo 执行完成
volumes: volumes:
- name: dockersock - name: dockersock