From 4b9f17014da9df827d196f2061523578a3420e4a Mon Sep 17 00:00:00 2001 From: arlenops Date: Thu, 20 Nov 2025 16:53:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E5=90=8E=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index ad1c1ee..e4a4595 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,21 +2,26 @@ kind: pipeline type: exec name: web模块 +platform: + os: linux + arch: amd64 + steps: - name: Pull latest code from Gitea - image: alpine:latest - timeout: 3m commands: - - apk add --no-cache git - cd /www/wwwroot/hgdemo.hgidc.cn/public/web/BlackFruit-web - - git clone https://yiqiu:ycyawCOM996.@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git . || git pull + - if [ ! -d .git ]; then + git clone https://yiqiu:***@gitea.ycyaw.com/yiqiu/BlackFruit-UI.git .; + else + git pull; + fi - ls -l - name: Restart Nginx - image: alpine:latest - timeout: 3m commands: - - apk add --no-cache nginx - nginx -s reload when: - branch: main \ No newline at end of file + branch: + include: + - main + - master