diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..f4d577f --- /dev/null +++ b/.drone.yml @@ -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