tt
This commit is contained in:
36
.drone.yml
36
.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/
|
||||
- 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
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>首页</title>
|
||||
<title>2222首页</title>
|
||||
<script src="../js/utils/rem.js"></script>
|
||||
<link rel="stylesheet" href="../css/tool/clear.css">
|
||||
<link rel="stylesheet" href="https://unpkg.com/swiper@8.4.7/swiper-bundle.min.css">
|
||||
|
||||
Reference in New Issue
Block a user