This commit is contained in:
2024-12-10 12:27:10 +08:00
parent f866087c7e
commit 4d98a46a8d

22
.drone.yml Normal file
View File

@@ -0,0 +1,22 @@
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