master
zhang 2 years ago
parent 66744df69f
commit 34cc10d966

@ -54,7 +54,7 @@ steps:
# target: /root # target: /root
# source: /target/* # source: /target/*
- name: ssh - name: ssh
image: registry-intl.cn-shenzhen.aliyuncs.com/sztest/sz:ssh image: appleboy/drone-ssh
settings: settings:
host: 192.168.230.16 host: 192.168.230.16
username: username:
@ -64,7 +64,7 @@ steps:
port: 22 port: 22
command_timeout: 5m command_timeout: 5m
script: script:
- cd /data/wwwroot/zabbix_back # 进入宿主机构建目录 - cd /data/wwwroot/docker/maven/build # 进入宿主机构建目录
- chmod +x run.sh # 更改为可执行脚本 - chmod +x run.sh # 更改为可执行脚本
- ./run.sh # 运行脚本打包应用镜像并运行 - ./run.sh # 运行脚本打包应用镜像并运行
# - name: docker # - name: docker
@ -101,7 +101,7 @@ steps:
volumes: # 定义流水线挂载目录,用于共享数据 volumes: # 定义流水线挂载目录,用于共享数据
- name: maven-build - name: maven-build
host: host:
path: /data/wwwroot/zabbix_back # 从宿主机中挂载的目录 path: /data/wwwroot/docker/maven/build # 从宿主机中挂载的目录
- name: cache - name: cache
host: host:
path: "/var/lib/cache" path: "/var/lib/cache"

Loading…
Cancel
Save