From 4bdcb1a1e9d167d894d49871b2d4efaeb97d9d52 Mon Sep 17 00:00:00 2001 From: whyour Date: Thu, 11 Dec 2025 01:56:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20init=5Fnginx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-docker-image.yml | 2 +- shell/start.sh | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 6b57ac32..b7f9cc78 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -166,7 +166,7 @@ jobs: flavor: | latest=false tags: | - type=ref,event=branch,enable=${{ github.ref == format('refs/heads/{0}', 'develop') }} + type=ref,event=branch,enable=${{ github.ref == format('refs/heads/{0}', 'debian-dev') }} type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} type=raw,value=${{ steps.version.outputs.version }}-debian,enable=${{ github.ref == format('refs/heads/{0}', 'debian') }} type=semver,pattern={{version}} diff --git a/shell/start.sh b/shell/start.sh index 083e228b..b01902e0 100644 --- a/shell/start.sh +++ b/shell/start.sh @@ -93,16 +93,15 @@ log_with_style() { printf "\n[%s] [%7s] %s\n" "${timestamp}" "${level}" "${message}" } -log_with_style "INFO" "🚀 1. 检测配置文件..." +log_with_style "INFO" "🚀 1. 检测配置文件..." import_config "$@" make_dir /etc/nginx/conf.d make_dir /run/nginx -init_nginx fix_config pm2 l &>/dev/null -log_with_style "INFO" "🔄 2. 启动 nginx..." +log_with_style "INFO" "🔄 2. 启动 nginx..." nginx -s reload 2>/dev/null || nginx -c /etc/nginx/nginx.conf log_with_style "INFO" "⚙️ 3. 启动 pm2 服务..."