From 9501899c8b6ad77eb81279727e2ab2ae6a57246a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=96=E7=A0=81=E7=8C=BF?= Date: Sun, 1 Dec 2024 00:49:21 +0800 Subject: [PATCH] tetststs --- .drone.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 579faaa..8277a0c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,16 +9,24 @@ steps: - name: copy image: drone/git:latest network_mode: host -# # volumes: -# # - name: 1panel-nginx-static -# # path: /drone/src/xiezheng_h5 + 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 - sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories - apk add --no-cache sshpass - - sshpass -p '' scp -o StrictHostKeyChecking=no -r /drone/src/xiezheng_h5/* root@192.168.31.100:/home/bmy/1panel/apps/openresty/openresty/www/sites/site.buyusdt.xyz/index/xz/ + - sshpass -p '$SSH_PASSWORD' scp -o StrictHostKeyChecking=no -r /drone/src/xiezheng_h5/* root@192.168.31.100:/home/bmy/1panel/apps/openresty/openresty/www/sites/site.buyusdt.xyz/index/xz/ # volumes: # - name: 1panel-nginx-static