Files
xiezheng_h5/.drone.yml
2024-12-03 09:00:31 +08:00

27 lines
641 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
SSH_STATIC_PATH:
from_secret: ssh_static_path
SSH_CLONE_URL:
from_secret: git_clone_url
commands:
- echo "$SSH_IP git.buyusdt.xyz" >> /etc/hosts
- git clone $SSH_CLONE_URL
- sshpass -p $SSH_PASSWORD scp -o StrictHostKeyChecking=no -r /drone/src/xiezheng_h5/* $SSH_USERNAME@$SSH_IP:$SSH_STATIC_PATH