Files
xiezheng_h5/.drone.yml
编码猿 e53ca032b4
Some checks failed
continuous-integration/drone/push Build is failing
scp -o StrictHostKeyChecking=no
2024-11-30 23:07:34 +08:00

28 lines
895 B
YAML

kind: pipeline
type: docker
name: default
clone:
disable: true
extra_hosts:
- "git.buyusdt.xyz:192.168.31.100"
steps:
- name: copy
network_mode: host
image: drone/git:latest
# volumes:
# - name: 1panel-nginx-static
# path: /drone/src/xiezheng_h5
commands:
- echo "192.168.31.100 git.buyusdt.xyz" >> /etc/hosts
- git config --global http.sslVerify "false"
- git clone https://git.buyusdt.xyz/bmy/xiezheng_h5.git
- sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
- apk add --no-cache sshpass
- sshpass -p '<??>' scp -o StrictHostKeyChecking=no /drone/src/xiezheng_h5/* root@192.168.31.100:/home/bmy/1panel/apps/openresty/openresty/www/sites/site.buyusdt.xyz/index/xz/
# volumes:
# - name: 1panel-nginx-static
# host:
# path: /home/bmy/1panel/apps/openresty/openresty/www/sites/site.buyusdt.xyz/index/xz/