mirror of https://github.com/certd/certd
Merge remote-tracking branch 'origin/v2' into v2
# Conflicts: # .github/workflows/build-image.yml # build.triggerpull/101/head
commit
4060f6ecbc
|
@ -12,7 +12,7 @@ permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sync:
|
build-certd-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
|
@ -20,28 +20,19 @@ jobs:
|
||||||
|
|
||||||
- name: get_certd_version
|
- name: get_certd_version
|
||||||
id: get_certd_version
|
id: get_certd_version
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
|
result-encoding: string
|
||||||
script: |
|
script: |
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const pnpmWorkspace = "./pnpm-workspace.yaml";
|
||||||
const pnpmWorkspace = "pnpm-workspace.yaml";
|
fs.unlinkSync(pnpmWorkspace)
|
||||||
fs.removeSync(pnpmWorkspace)
|
|
||||||
|
|
||||||
const jsonFilePath = "./packages/ui/certd-server/package.json";
|
const jsonFilePath = "./packages/ui/certd-server/package.json";
|
||||||
const jsonContent = fs.readFileSync(jsonFilePath, 'utf-8');
|
const jsonContent = fs.readFileSync(jsonFilePath, 'utf-8');
|
||||||
console.log(jsonContent)
|
|
||||||
const pkg = JSON.parse(jsonContent)
|
const pkg = JSON.parse(jsonContent)
|
||||||
// 打印 JSON 文件内容
|
|
||||||
console.log("certd_version:",pkg.version);
|
console.log("certd_version:",pkg.version);
|
||||||
// 输出 JSON 对象,可以在后续步骤中使用
|
return pkg.version
|
||||||
return {"version":"0.0.5"};
|
|
||||||
|
|
||||||
- name: Set up the working directory
|
|
||||||
run: |
|
|
||||||
mkdir -p ./packages/ui/
|
|
||||||
working-directory: ./packages/ui/
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
|
@ -49,17 +40,18 @@ jobs:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to aliyun container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: registry.cn-shenzhen.aliyuncs.com
|
registry: registry.cn-shenzhen.aliyuncs.com
|
||||||
username: ${{ secrets.ALIYUN_CS_USERNAME }}
|
username: ${{ secrets.aliyun_cs_username }}
|
||||||
password: ${{ secrets.ALIYUN_CS_PASSWORD }}
|
password: ${{ secrets.aliyun_cs_password }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6.5.0
|
uses: docker/build-push-action@v6.5.0
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
# platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
|
context: ./packages/ui/
|
||||||
tags: |
|
tags: |
|
||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.version}}
|
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复创建流水线时,无法根据dns类型默认正确的dns授权的bug ([a2c43b5](https://github.com/certd/certd/commit/a2c43b50a6069ed48958fd142844a8568c2af452))
|
||||||
|
|
||||||
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
||||||
|
|
||||||
### Performance Improvements
|
### Performance Improvements
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
6
|
4
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
# 判断$CERTD_VERSION 是否存在
|
|
||||||
if [ -n "$CERTD_VERSION" ]; then
|
|
||||||
echo "CERTD_VERSION is set = $CERTD_VERSION"
|
|
||||||
else
|
|
||||||
echo "CERTD_VERSION is not set"
|
|
||||||
echo "请先输入一个版本号(如 1.0.6):"
|
|
||||||
read CERTD_VERSION
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "您输入的版本号是: $CERTD_VERSION"
|
|
||||||
sudo -E docker compose up -d
|
|
|
@ -9,5 +9,5 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"npmClient": "pnpm",
|
"npmClient": "pnpm",
|
||||||
"version": "1.22.1"
|
"version": "1.22.2"
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "lerna bootstrap --hoist",
|
"start": "lerna bootstrap --hoist",
|
||||||
"i-all": "lerna link && lerna exec npm install ",
|
"i-all": "lerna link && lerna exec npm install ",
|
||||||
"publish": "npm run prepublishOnly1 && lerna publish --conventional-commits && npm run afterpublishOnly && npm run deploy1",
|
"publish": "npm run prepublishOnly1 && lerna publish --conventional-commits --create-release github && npm run afterpublishOnly && npm run deploy1",
|
||||||
"afterpublishOnly": "",
|
"afterpublishOnly": "",
|
||||||
"prepublishOnly1": "npm run check && npm run before-build && lerna run build ",
|
"prepublishOnly1": "npm run check && npm run before-build && lerna run build ",
|
||||||
"before-build": "cd ./packages/core/acme-client && time /t >build.md && git add build.trigger && git commit -m \\\"build: prepare to build\\\"",
|
"before-build": "cd ./packages/core/acme-client && time /t >build.md && git add ./build.md && git commit -m \"build: prepare to build\"",
|
||||||
"deploy1": "node --experimental-json-modules deploy.js ",
|
"deploy1": "node --experimental-json-modules deploy.js ",
|
||||||
"check": "node --experimental-json-modules publish-check.js",
|
"check": "node --experimental-json-modules publish-check.js",
|
||||||
"init": "lerna run build"
|
"init": "lerna run build"
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.22.2](https://github.com/publishlab/node-acme-client/compare/v1.22.1...v1.22.2) (2024-07-23)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|
||||||
## [1.22.1](https://github.com/publishlab/node-acme-client/compare/v1.22.0...v1.22.1) (2024-07-20)
|
## [1.22.1](https://github.com/publishlab/node-acme-client/compare/v1.22.0...v1.22.1) (2024-07-20)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/acme-client
|
**Note:** Version bump only for package @certd/acme-client
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
03:10
|
02:24
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"description": "Simple and unopinionated ACME client",
|
"description": "Simple and unopinionated ACME client",
|
||||||
"private": false,
|
"private": false,
|
||||||
"author": "nmorsman",
|
"author": "nmorsman",
|
||||||
"version": "1.22.1",
|
"version": "1.22.2",
|
||||||
"main": "src/index.js",
|
"main": "src/index.js",
|
||||||
"types": "types/index.d.ts",
|
"types": "types/index.d.ts",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -59,5 +59,5 @@
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/publishlab/node-acme-client/issues"
|
"url": "https://github.com/publishlab/node-acme-client/issues"
|
||||||
},
|
},
|
||||||
"gitHead": "47fe3d5826661f678d081ab53e67c847a3239d88"
|
"gitHead": "e5da46cfc31b2e30a4903bcb2251b1851265ef41"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/pipeline
|
||||||
|
|
||||||
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
||||||
|
|
||||||
### Performance Improvements
|
### Performance Improvements
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@certd/pipeline",
|
"name": "@certd/pipeline",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.22.1",
|
"version": "1.22.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
@ -55,5 +55,5 @@
|
||||||
"vite": "^4.3.8",
|
"vite": "^4.3.8",
|
||||||
"vue-tsc": "^1.6.5"
|
"vue-tsc": "^1.6.5"
|
||||||
},
|
},
|
||||||
"gitHead": "47fe3d5826661f678d081ab53e67c847a3239d88"
|
"gitHead": "e5da46cfc31b2e30a4903bcb2251b1851265ef41"
|
||||||
}
|
}
|
||||||
|
|
|
@ -283,7 +283,7 @@ export class Executor {
|
||||||
}
|
}
|
||||||
if (notification.type === "email") {
|
if (notification.type === "email") {
|
||||||
try {
|
try {
|
||||||
this.options.emailService?.send({
|
await this.options.emailService?.send({
|
||||||
userId: this.pipeline.userId,
|
userId: this.pipeline.userId,
|
||||||
subject,
|
subject,
|
||||||
content,
|
content,
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/lib-k8s
|
||||||
|
|
||||||
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/lib-k8s
|
**Note:** Version bump only for package @certd/lib-k8s
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@certd/lib-k8s",
|
"name": "@certd/lib-k8s",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.22.1",
|
"version": "1.22.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
"shelljs": "^0.8.5"
|
"shelljs": "^0.8.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@certd/pipeline": "^1.22.1",
|
"@certd/pipeline": "^1.22.2",
|
||||||
"@rollup/plugin-commonjs": "^23.0.4",
|
"@rollup/plugin-commonjs": "^23.0.4",
|
||||||
"@rollup/plugin-json": "^6.0.0",
|
"@rollup/plugin-json": "^6.0.0",
|
||||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||||
|
@ -38,5 +38,5 @@
|
||||||
"tslib": "^2.5.2",
|
"tslib": "^2.5.2",
|
||||||
"typescript": "^4.8.4"
|
"typescript": "^4.8.4"
|
||||||
},
|
},
|
||||||
"gitHead": "47fe3d5826661f678d081ab53e67c847a3239d88"
|
"gitHead": "e5da46cfc31b2e30a4903bcb2251b1851265ef41"
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||||
|
|
||||||
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
||||||
|
|
||||||
**Note:** Version bump only for package @certd/midway-flyway-js
|
**Note:** Version bump only for package @certd/midway-flyway-js
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@certd/midway-flyway-js",
|
"name": "@certd/midway-flyway-js",
|
||||||
"version": "1.22.1",
|
"version": "1.22.2",
|
||||||
"description": "midway with flyway, sql upgrade way ",
|
"description": "midway with flyway, sql upgrade way ",
|
||||||
"private": false,
|
"private": false,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -53,5 +53,5 @@
|
||||||
"typeorm": "^0.3.11",
|
"typeorm": "^0.3.11",
|
||||||
"typescript": "~5.1.0"
|
"typescript": "~5.1.0"
|
||||||
},
|
},
|
||||||
"gitHead": "47fe3d5826661f678d081ab53e67c847a3239d88"
|
"gitHead": "e5da46cfc31b2e30a4903bcb2251b1851265ef41"
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,8 +227,10 @@ export class Flyway {
|
||||||
if (history.hash !== hash && this.allowHashNotMatch === false) {
|
if (history.hash !== hash && this.allowHashNotMatch === false) {
|
||||||
throw new Error(file + `hash conflict ,old: ${history.hash} != new: ${hash}`);
|
throw new Error(file + `hash conflict ,old: ${history.hash} != new: ${hash}`);
|
||||||
}
|
}
|
||||||
|
this.logger.info('[ midfly ] script<' + file + '> already executed');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
this.logger.info('[ midfly ] script<' + file + '> not yet execute');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,10 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @certd/plugin-cert
|
||||||
|
|
||||||
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
||||||
|
|
||||||
### Performance Improvements
|
### Performance Improvements
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "@certd/plugin-cert",
|
"name": "@certd/plugin-cert",
|
||||||
"private": false,
|
"private": false,
|
||||||
"version": "1.22.1",
|
"version": "1.22.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
|
@ -13,8 +13,8 @@
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@certd/acme-client": "^1.22.1",
|
"@certd/acme-client": "^1.22.2",
|
||||||
"@certd/pipeline": "^1.22.1",
|
"@certd/pipeline": "^1.22.2",
|
||||||
"jszip": "^3.10.1",
|
"jszip": "^3.10.1",
|
||||||
"node-forge": "^0.10.0",
|
"node-forge": "^0.10.0",
|
||||||
"psl": "^1.9.0"
|
"psl": "^1.9.0"
|
||||||
|
@ -53,5 +53,5 @@
|
||||||
"vite": "^3.1.0",
|
"vite": "^3.1.0",
|
||||||
"vue-tsc": "^0.38.9"
|
"vue-tsc": "^0.38.9"
|
||||||
},
|
},
|
||||||
"gitHead": "47fe3d5826661f678d081ab53e67c847a3239d88"
|
"gitHead": "e5da46cfc31b2e30a4903bcb2251b1851265ef41"
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,6 +33,7 @@ export class CertApplyPlugin extends CertApplyBasePlugin {
|
||||||
vModel: "value",
|
vModel: "value",
|
||||||
options: [
|
options: [
|
||||||
{ value: "letsencrypt", label: "Let's Encrypt" },
|
{ value: "letsencrypt", label: "Let's Encrypt" },
|
||||||
|
// { value: "letsencrypt-proxy", label: "Let's Encrypt代理,letsencrypt.org无法访问时使用" },
|
||||||
// { value: "buypass", label: "Buypass" },
|
// { value: "buypass", label: "Buypass" },
|
||||||
{ value: "zerossl", label: "ZeroSSL" },
|
{ value: "zerossl", label: "ZeroSSL" },
|
||||||
],
|
],
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
export const dnsList = [];
|
|
@ -1,9 +1,9 @@
|
||||||
import { IsTaskPlugin, pluginGroups, RunStrategy, sp, Step, TaskInput } from "@certd/pipeline";
|
import { IsTaskPlugin, pluginGroups, RunStrategy, sp, Step, TaskInput } from "@certd/pipeline";
|
||||||
import type { CertInfo } from "./acme.js";
|
import type { CertInfo } from "../acme.js";
|
||||||
import { CertReader } from "./cert-reader.js";
|
import { CertReader } from "../cert-reader.js";
|
||||||
import { CertApplyBasePlugin } from "./base.js";
|
import { CertApplyBasePlugin } from "../base.js";
|
||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import { EabAccess } from "../../access";
|
import { EabAccess } from "../../../access/index.js";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
export { CertReader };
|
export { CertReader };
|
||||||
|
@ -25,6 +25,21 @@ export type { CertInfo };
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
export class CertApplyLegoPlugin extends CertApplyBasePlugin {
|
export class CertApplyLegoPlugin extends CertApplyBasePlugin {
|
||||||
|
// @TaskInput({
|
||||||
|
// title: "ACME服务端点",
|
||||||
|
// default: "https://acme-v02.api.letsencrypt.org/directory",
|
||||||
|
// component: {
|
||||||
|
// name: "a-select",
|
||||||
|
// vModel: "value",
|
||||||
|
// options: [
|
||||||
|
// { value: "https://acme-v02.api.letsencrypt.org/directory", label: "Let's Encrypt" },
|
||||||
|
// { value: "https://letsencrypt.proxy.handsfree.work/directory", label: "Let's Encrypt代理,letsencrypt.org无法访问时使用" },
|
||||||
|
// ],
|
||||||
|
// },
|
||||||
|
// required: true,
|
||||||
|
// })
|
||||||
|
acmeServer!: string;
|
||||||
|
|
||||||
@TaskInput({
|
@TaskInput({
|
||||||
title: "DNS类型",
|
title: "DNS类型",
|
||||||
component: {
|
component: {
|
||||||
|
@ -110,8 +125,14 @@ export class CertApplyLegoPlugin extends CertApplyBasePlugin {
|
||||||
const savePathArgs = `--path "${saveDir}"`;
|
const savePathArgs = `--path "${saveDir}"`;
|
||||||
const os_type = process.platform === "win32" ? "windows" : "linux";
|
const os_type = process.platform === "win32" ? "windows" : "linux";
|
||||||
const legoPath = path.resolve("./tools", os_type, "lego");
|
const legoPath = path.resolve("./tools", os_type, "lego");
|
||||||
|
let serverArgs = "";
|
||||||
|
if (this.acmeServer) {
|
||||||
|
serverArgs = ` --server ${this.acmeServer}`;
|
||||||
|
}
|
||||||
const cmds = [
|
const cmds = [
|
||||||
`${legoPath} -a --email "${this.email}" --dns ${this.dnsType} ${keyType} ${domainArgs} ${eabArgs} ${savePathArgs} ${this.customArgs || ""} run`,
|
`${legoPath} -a --email "${this.email}" --dns ${this.dnsType} ${keyType} ${domainArgs} ${serverArgs} ${eabArgs} ${savePathArgs} ${
|
||||||
|
this.customArgs || ""
|
||||||
|
} run`,
|
||||||
];
|
];
|
||||||
|
|
||||||
await sp.spawn({
|
await sp.spawn({
|
|
@ -1,2 +1,2 @@
|
||||||
export * from "./cert-plugin/index.js";
|
export * from "./cert-plugin/index.js";
|
||||||
export * from "./cert-plugin/lego.js";
|
export * from "./cert-plugin/lego/index.js";
|
||||||
|
|
|
@ -2,8 +2,7 @@ FROM node:18-alpine as builder
|
||||||
EXPOSE 7001
|
EXPOSE 7001
|
||||||
WORKDIR /workspace/
|
WORKDIR /workspace/
|
||||||
COPY . /workspace/
|
COPY . /workspace/
|
||||||
RUN npm install -g pnpm@8.15.7 --registry=https://registry.npmmirror.com
|
RUN npm install -g pnpm@8.15.7
|
||||||
RUN pnpm config set registry https://registry.npmmirror.com/
|
|
||||||
|
|
||||||
RUN cd /workspace/certd-client && pnpm install && npm run build
|
RUN cd /workspace/certd-client && pnpm install && npm run build
|
||||||
RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker
|
RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker
|
||||||
|
@ -14,9 +13,9 @@ RUN cp /workspace/certd-client/dist/* /workspace/certd-server/public/ -rf
|
||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
COPY --from=builder /workspace/certd-server/ /app/
|
COPY --from=builder /workspace/certd-server/ /app/
|
||||||
ENV TZ Asia/Shanghai
|
ENV TZ=Asia/Shanghai
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV=production
|
||||||
ENV MIDWAY_SERVER_ENV production
|
ENV MIDWAY_SERVER_ENV=production
|
||||||
CMD ["npm", "run","start"]
|
CMD ["npm", "run","start"]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复创建流水线时,无法根据dns类型默认正确的dns授权的bug ([a2c43b5](https://github.com/certd/certd/commit/a2c43b50a6069ed48958fd142844a8568c2af452))
|
||||||
|
|
||||||
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
||||||
|
|
||||||
### Performance Improvements
|
### Performance Improvements
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@certd/ui-client",
|
"name": "@certd/ui-client",
|
||||||
"version": "1.22.1",
|
"version": "1.22.2",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --open",
|
"dev": "vite --open",
|
||||||
|
@ -59,7 +59,7 @@
|
||||||
"vuedraggable": "^2.24.3"
|
"vuedraggable": "^2.24.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@certd/pipeline": "^1.22.1",
|
"@certd/pipeline": "^1.22.2",
|
||||||
"@rollup/plugin-commonjs": "^25.0.7",
|
"@rollup/plugin-commonjs": "^25.0.7",
|
||||||
"@rollup/plugin-node-resolve": "^15.2.3",
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
||||||
"@types/chai": "^4.3.12",
|
"@types/chai": "^4.3.12",
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
import _ from "lodash-es";
|
||||||
|
import { compute } from "@fast-crud/fast-crud";
|
||||||
|
|
||||||
|
export function useReference(form: any) {
|
||||||
|
if (!form.reference) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
for (const reference of form.reference) {
|
||||||
|
debugger;
|
||||||
|
_.set(
|
||||||
|
form,
|
||||||
|
reference.dest,
|
||||||
|
compute<any>((scope) => {
|
||||||
|
debugger;
|
||||||
|
return _.get(scope, reference.src);
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,7 @@
|
||||||
import { compute, CreateCrudOptionsRet, dict } from "@fast-crud/fast-crud";
|
import { compute, CreateCrudOptionsRet, dict } from "@fast-crud/fast-crud";
|
||||||
import { PluginGroup } from "@certd/pipeline";
|
import { PluginGroup } from "@certd/pipeline";
|
||||||
|
import { useReference } from "/@/use/use-refrence";
|
||||||
|
import _ from "lodash-es";
|
||||||
|
|
||||||
export default function (certPluginGroup: PluginGroup, formWrapperRef: any): CreateCrudOptionsRet {
|
export default function (certPluginGroup: PluginGroup, formWrapperRef: any): CreateCrudOptionsRet {
|
||||||
const inputs: any = {};
|
const inputs: any = {};
|
||||||
|
@ -10,10 +12,11 @@ export default function (certPluginGroup: PluginGroup, formWrapperRef: any): Cre
|
||||||
inputs[inputKey].form.show = true;
|
inputs[inputKey].form.show = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const inputDefine = plugin.input[inputKey];
|
const inputDefine = _.cloneDeep(plugin.input[inputKey]);
|
||||||
if (!inputDefine.required && !inputDefine.maybeNeed) {
|
if (!inputDefine.required && !inputDefine.maybeNeed) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
useReference(inputDefine);
|
||||||
inputs[inputKey] = {
|
inputs[inputKey] = {
|
||||||
title: inputDefine.title,
|
title: inputDefine.title,
|
||||||
form: {
|
form: {
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.22.2](https://github.com/certd/certd/compare/v1.22.1...v1.22.2) (2024-07-23)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* 修复创建流水线时,无法根据dns类型默认正确的dns授权的bug ([a2c43b5](https://github.com/certd/certd/commit/a2c43b50a6069ed48958fd142844a8568c2af452))
|
||||||
|
|
||||||
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
## [1.22.1](https://github.com/certd/certd/compare/v1.22.0...v1.22.1) (2024-07-20)
|
||||||
|
|
||||||
### Performance Improvements
|
### Performance Improvements
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@certd/ui-server",
|
"name": "@certd/ui-server",
|
||||||
"version": "1.22.1",
|
"version": "1.22.2",
|
||||||
"description": "fast-server base midway",
|
"description": "fast-server base midway",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -21,12 +21,12 @@
|
||||||
"@alicloud/cs20151215": "^3.0.3",
|
"@alicloud/cs20151215": "^3.0.3",
|
||||||
"@alicloud/openapi-client": "^0.4.0",
|
"@alicloud/openapi-client": "^0.4.0",
|
||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@certd/acme-client": "^1.22.1",
|
"@certd/acme-client": "^1.22.2",
|
||||||
"@certd/lib-huawei": "^1.22.1",
|
"@certd/lib-huawei": "^1.22.1",
|
||||||
"@certd/lib-k8s": "^1.22.1",
|
"@certd/lib-k8s": "^1.22.2",
|
||||||
"@certd/midway-flyway-js": "^1.22.1",
|
"@certd/midway-flyway-js": "^1.22.2",
|
||||||
"@certd/pipeline": "^1.22.1",
|
"@certd/pipeline": "^1.22.2",
|
||||||
"@certd/plugin-cert": "^1.22.1",
|
"@certd/plugin-cert": "^1.22.2",
|
||||||
"@koa/cors": "^3.4.3",
|
"@koa/cors": "^3.4.3",
|
||||||
"@midwayjs/bootstrap": "^3.16.2",
|
"@midwayjs/bootstrap": "^3.16.2",
|
||||||
"@midwayjs/cache": "^3.14.0",
|
"@midwayjs/cache": "^3.14.0",
|
||||||
|
|
|
@ -59,7 +59,7 @@ const development = {
|
||||||
type: 'better-sqlite3',
|
type: 'better-sqlite3',
|
||||||
database: './data/db.sqlite',
|
database: './data/db.sqlite',
|
||||||
synchronize: false, // 如果第一次使用,不存在表,有同步的需求可以写 true
|
synchronize: false, // 如果第一次使用,不存在表,有同步的需求可以写 true
|
||||||
logging: true,
|
logging: false,
|
||||||
|
|
||||||
// 配置实体模型 或者 entities: '/entity',
|
// 配置实体模型 或者 entities: '/entity',
|
||||||
entities: ['**/modules/*/entity/*.ts', '**/entity/*.js', '**/entity/*.d.ts', PipelineEntity, FlywayHistory, UserEntity],
|
entities: ['**/modules/*/entity/*.ts', '**/entity/*.js', '**/entity/*.d.ts', PipelineEntity, FlywayHistory, UserEntity],
|
||||||
|
|
|
@ -8,6 +8,13 @@ const preview = {
|
||||||
preview: {
|
preview: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
},
|
},
|
||||||
|
typeorm: {
|
||||||
|
dataSource: {
|
||||||
|
default: {
|
||||||
|
logging: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
} as MidwayConfig;
|
} as MidwayConfig;
|
||||||
|
|
||||||
mergeConfig(preview, 'preview');
|
mergeConfig(preview, 'preview');
|
||||||
|
|
|
@ -8,6 +8,13 @@ const production = {
|
||||||
preview: {
|
preview: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
|
typeorm: {
|
||||||
|
dataSource: {
|
||||||
|
default: {
|
||||||
|
logging: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
} as MidwayConfig;
|
} as MidwayConfig;
|
||||||
|
|
||||||
mergeConfig(production, 'production');
|
mergeConfig(production, 'production');
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
|
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
|
import childProcess from 'child_process';
|
||||||
function check(){
|
function check(){
|
||||||
const gitAdd = fs.readFileSync("./node_modules/@lerna-lite/version/dist/lib/git-add.js","utf-8")
|
const gitAdd = fs.readFileSync("./node_modules/@lerna-lite/version/dist/lib/git-add.js","utf-8")
|
||||||
if(gitAdd.indexOf("('git', ['add', '.']") > -1){
|
if(gitAdd.indexOf("('git', ['add', '.']") > -1){
|
||||||
|
@ -8,6 +9,14 @@ function check(){
|
||||||
console.error("git-add 没有修改过")
|
console.error("git-add 没有修改过")
|
||||||
throw new Error("git-add 还没修改过")
|
throw new Error("git-add 还没修改过")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//GH_TOKEN
|
||||||
|
console.log("检查 GH_TOKEN")
|
||||||
|
if(!process.env.GH_TOKEN){
|
||||||
|
// setx /M GH_TOKEN xxxxx
|
||||||
|
console.error("GH_TOKEN 未设置")
|
||||||
|
throw new Error("GH_TOKEN 未设置")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check()
|
check()
|
Loading…
Reference in New Issue