diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index eb647dc3..00000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,15 +0,0 @@ -# These are supported funding model platforms - -github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -polar: # Replace with a single Polar username -buy_me_a_coffee: # Replace with a single Buy Me a Coffee username -thanks_dev: # Replace with a single thanks.dev username -custom: ["https://profile.ikit.fun/sponsors/"] diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 52494864..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -name: Bug report -about: 创建一个报告来帮助我们改进 -title: "[Bug] 标题简要描述问题" -labels: bug -assignees: "" ---- - -**描述问题** -简要描述问题是什么,1 个 ISSUE 只描述一个问题。 - -**复现步骤** -复现该问题的步骤: - -1. 去到 '...' -2. 点击 '...' -3. 滚动到 '...' -4. 发现问题 - -**期望的结果** -简要描述你期望发生的事情。 - -**截图** -如有可能,请添加截图以帮助解释问题。 - -**环境** - -- 操作系统: [e.g. Windows, macOS] -- 浏览器: [e.g. Chrome, Safari] -- 仓库版本: [e.g. v1.0.0] - -**其他信息** -在此处添加关于该问题的任何其他信息。 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index bc6bb57b..00000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: 加入频道讨论 - url: https://t.me/+ZXphsppxUg41YmVl - about: 加入到电报频道寻求更多帮助 diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 9eb598c9..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -name: Feature request -about: 提出一个新功能请求 -title: "[Feature] 简要描述你希望实现的功能" -labels: enhancement -assignees: "" ---- - -**功能描述** -简要描述你希望添加的功能和相关问题,1 个 ISSUE 只描述一个功能。 - -**动机** -为什么这个功能对项目有帮助? - -**替代方案** -描述你已经考虑过的替代方案。 - -**其他信息** -在这里添加任何相关的附加信息或截图。 diff --git a/.github/workflows/push_image.yml b/.github/workflows/push_image.yml index 10ae8d01..ee934ef3 100644 --- a/.github/workflows/push_image.yml +++ b/.github/workflows/push_image.yml @@ -2,16 +2,8 @@ name: Docker Image CI (stable versions) on: push: - tags: - - "v[0-9]*" - - "!v*alpha*" - - "!v*beta*" - workflow_dispatch: - inputs: - tag: - description: "Tag version to be used for Docker image" - required: true - default: "latest" + branches: + - main jobs: build-and-push: @@ -32,8 +24,7 @@ jobs: uses: docker/metadata-action@v5 with: images: | - usual2970/certimate - registry.cn-shanghai.aliyuncs.com/usual2970/certimate + woodchen/certimate - name: Log in to DOCKERHUB uses: docker/login-action@v3 @@ -41,13 +32,6 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }} - - name: Log in to ALIYUNCS - uses: docker/login-action@v3 - with: - registry: registry.cn-shanghai.aliyuncs.com - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - name: Build and push Docker image uses: docker/build-push-action@v6 with: @@ -55,4 +39,3 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true - tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/push_image_next.yml b/.github/workflows/push_image_next.yml deleted file mode 100644 index 3a7074e3..00000000 --- a/.github/workflows/push_image_next.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: Docker Image CI (preview versions) - -on: - push: - tags: - - "v[0-9]*-alpha*" - - "v[0-9]*-beta*" - workflow_dispatch: - inputs: - tag: - description: "Tag version to be used for Docker image" - required: true - default: "next" - -jobs: - build-and-push: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: | - usual2970/certimate - registry.cn-shanghai.aliyuncs.com/usual2970/certimate - tags: | - type=ref,event=tag,pattern={{version}} - flavor: | - latest=false - - - name: Log in to DOCKERHUB - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - - - name: Log in to ALIYUNCS - uses: docker/login-action@v3 - with: - registry: registry.cn-shanghai.aliyuncs.com - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Build and push Docker image - uses: docker/build-push-action@v6 - with: - context: . - file: ./Dockerfile - platforms: linux/amd64,linux/arm64 - push: true - tags: ${{ steps.meta.outputs.tags }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 81d02616..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: Base Build - -on: - push: - tags: - - "v[0-9]*" - -jobs: - goreleaser: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 20.11.0 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: ">=1.23.0" - - - name: Build WebUI - run: npm --prefix=./ui ci && npm --prefix=./ui run build - - - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 - with: - distribution: goreleaser - version: latest - args: release --clean - env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} diff --git a/Dockerfile b/Dockerfile index b29a5453..f25bcc13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-alpine3.19 AS front-builder +FROM node:22-alpine3.19 AS front-builder WORKDIR /app