ww
This commit is contained in:
22
.drone.yml
Normal file
22
.drone.yml
Normal 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
|
||||
Reference in New Issue
Block a user