diff --git a/.drone.yml b/.drone.yml index bf0034b..3a8aaed 100644 --- a/.drone.yml +++ b/.drone.yml @@ -54,7 +54,7 @@ steps: # target: /root # source: /target/* - name: ssh - image: appleboy/drone-ssh + image: registry-intl.cn-shenzhen.aliyuncs.com/sztest/sz:ssh settings: host: 192.168.230.16 username: @@ -64,7 +64,9 @@ steps: port: 22 command_timeout: 5m script: - - echo hello + - cd /data/wwwroot/zabbix_back # 进入宿主机构建目录 + - chmod +x run.sh # 更改为可执行脚本 + - ./run.sh # 运行脚本打包应用镜像并运行 # - name: docker # image: plugins/docker # settings: