From c6b62785a7b1eb482af4308e75ee889887bc3c55 Mon Sep 17 00:00:00 2001 From: bmy <2271608011@qq.com> Date: Tue, 3 Dec 2024 09:00:31 +0800 Subject: [PATCH] tt --- .drone.yml | 36 +++++++++++++++++------------------- page/index.html | 2 +- 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5f4b432..f9d481e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,25 +4,23 @@ name: default clone: disable: true - extra_hosts: - - "git.buyusdt.xyz:192.168.31.100" steps: -- name: myclone - image: drone/git:latest - # volumes: - # - name: 1panel-nginx-static - # path: /drone/src/xiezheng_h5 +- 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 "192.168.31.100 git.buyusdt.xyz" >> /etc/hosts - - git config --global http.sslVerify "false" - - git clone https://git.buyusdt.xyz/bmy/xiezheng_h5.git - - uname -a - - cat /proc/version - - apk --no-cache add sshpass - - scp -v - -# volumes: -# - name: 1panel-nginx-static -# host: -# path: /home/bmy/1panel/apps/openresty/openresty/www/sites/site.buyusdt.xyz/index/xz/ \ No newline at end of file + - 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 diff --git a/page/index.html b/page/index.html index 9cbaf14..c91b52d 100644 --- a/page/index.html +++ b/page/index.html @@ -4,7 +4,7 @@ - 首页 + 2222首页