Files
xiezheng_jq/.drone.yml
bmy 3de0c5414f
All checks were successful
continuous-integration/drone/push Build is passing
test
2024-12-10 12:33:54 +08:00

24 lines
630 B
YAML

kind: pipeline
type: docker
name: default
clone:
disable: true
steps:
- name: copy
image: 2271608011/bmygit:v1
network_mode: host
environment:
SSH_PASSWORD:
from_secret: ssh_password
SSH_USERNAME:
from_secret: ssh_username
SSH_IP:
from_secret: ssh_ip
commands:
- echo "$SSH_IP git.buyusdt.xyz" >> /etc/hosts
- git clone https://git.buyusdt.xyz/bmy/xiezheng_jq.git
- sshpass -p $SSH_PASSWORD scp -o StrictHostKeyChecking=no -r /drone/src/xiezheng_jq/* $SSH_USERNAME@$SSH_IP:/home/bmy/1panel/apps/openresty/openresty/www/sites/site.buyusdt.xyz/index/xz_jq