mirror of
https://github.com/fscarmen/sing-box.git
synced 2026-08-10 17:55:16 +08:00
- Add dynamic step tracking (STEP_NUM/TOTAL_STEPS) for installation. - Implement calc_install_steps() to auto-calculate progress. - Refine wording: replace "reality SNI" with "TLS SNI" for clarity. - Simplify protocol selection prompts by removing fixed step labels. - Enhance check_cdn() logic by testing actual script URL instead of root. - Add localized strings (E/C[136-138]) for protocol menus. - Improve CDN detection reliability with adjusted timeouts and methods. feat: 优化安装交互、统一文案并增强 CDN 检测逻辑 - 新增安装步骤动态计数,实时显示安装进度。 - 引入 calc_install_steps() 根据协议选择动态计算总步骤。 - 规范化文案:将 "reality SNI" 统一修改为 "TLS SNI"。 - 精简协议选择交互,移除硬编码的固定步骤标识。 - 优化 check_cdn():改为检测脚本实际地址,提升判断准确性。 - 新增多语言文案 (E/C[136-138]) 并调整检测超时逻辑。
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: "Build and push images"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
name: "Build Sing-box image"
|
|
env:
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
DOCKERHUB_REPOSITORY: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO }}:latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v4.0.0
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4.0.0
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v4.0.0
|
|
with:
|
|
username: ${{ env.DOCKER_USERNAME }}
|
|
password: ${{ env.DOCKER_PASSWORD }}
|
|
|
|
- name: Push images to Docker hub
|
|
uses: docker/build-push-action@v7.0.0
|
|
with:
|
|
push: true
|
|
platforms: linux/amd64, linux/arm64, linux/arm/v7
|
|
tags: ${{ env.DOCKERHUB_REPOSITORY }} |