mirror of https://github.com/certd/certd
chore: 支持手动上传证书并部署
parent
de40be430b
commit
4453070060
|
@ -78,7 +78,7 @@ export class CertApplyUploadPlugin extends CertApplyBaseConvertPlugin {
|
||||||
|
|
||||||
const leftDays = dayjs(certReader.expires).diff(dayjs(), "day");
|
const leftDays = dayjs(certReader.expires).diff(dayjs(), "day");
|
||||||
this.logger.info(`证书过期时间${dayjs(certReader.expires).format("YYYY-MM-DD HH:mm:ss")},剩余${leftDays}天`);
|
this.logger.info(`证书过期时间${dayjs(certReader.expires).format("YYYY-MM-DD HH:mm:ss")},剩余${leftDays}天`);
|
||||||
const lastCrtMd5 = this.lastStatus.status.output?.certMd5;
|
const lastCrtMd5 = this.lastStatus?.status?.output?.certMd5;
|
||||||
this.logger.info("证书MD5", crtMd5);
|
this.logger.info("证书MD5", crtMd5);
|
||||||
this.logger.info("上次证书MD5", lastCrtMd5);
|
this.logger.info("上次证书MD5", lastCrtMd5);
|
||||||
if (lastCrtMd5 === crtMd5) {
|
if (lastCrtMd5 === crtMd5) {
|
||||||
|
|
|
@ -94,7 +94,6 @@ export class CertUploadService extends BaseService<CertInfoEntity> {
|
||||||
title: "默认通知",
|
title: "默认通知",
|
||||||
});
|
});
|
||||||
let pipeline = {
|
let pipeline = {
|
||||||
id: nanoid(10),
|
|
||||||
title: pipelineTitle,
|
title: pipelineTitle,
|
||||||
runnableType: "pipeline",
|
runnableType: "pipeline",
|
||||||
stages: [
|
stages: [
|
||||||
|
|
Loading…
Reference in New Issue