mirror of https://github.com/certd/certd
Merge branch 'v2-dev' into v2-plugin
commit
84bb4c8b07
|
@ -10,6 +10,7 @@ on:
|
||||||
# - cron: '17 19 * * *'
|
# - cron: '17 19 * * *'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-certd-image:
|
build-certd-image:
|
||||||
|
@ -61,6 +62,13 @@ jobs:
|
||||||
username: ${{ secrets.aliyun_cs_username }}
|
username: ${{ secrets.aliyun_cs_username }}
|
||||||
password: ${{ secrets.aliyun_cs_password }}
|
password: ${{ secrets.aliyun_cs_password }}
|
||||||
|
|
||||||
|
- name: Login to GitHub Packages
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
@ -76,4 +84,5 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd-dev:latest
|
registry.cn-shenzhen.aliyuncs.com/handsfree/certd-dev:latest
|
||||||
greper/certd-dev:latest
|
greper/certd-dev:latest
|
||||||
|
ghcr.io/${{ github.repository }}:dev-latest
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ on:
|
||||||
# - cron: '17 19 * * *'
|
# - cron: '17 19 * * *'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-certd-image:
|
build-certd-image:
|
||||||
|
@ -61,6 +62,13 @@ jobs:
|
||||||
username: ${{ secrets.aliyun_cs_username }}
|
username: ${{ secrets.aliyun_cs_username }}
|
||||||
password: ${{ secrets.aliyun_cs_password }}
|
password: ${{ secrets.aliyun_cs_password }}
|
||||||
|
|
||||||
|
- name: Login to GitHub Packages
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
@ -78,7 +86,8 @@ jobs:
|
||||||
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}
|
registry.cn-shenzhen.aliyuncs.com/handsfree/certd:${{steps.get_certd_version.outputs.result}}
|
||||||
greper/certd:latest
|
greper/certd:latest
|
||||||
greper/certd:${{steps.get_certd_version.outputs.result}}
|
greper/certd:${{steps.get_certd_version.outputs.result}}
|
||||||
|
ghcr.io/${{ github.repository }}:latest
|
||||||
|
ghcr.io/${{ github.repository }}:${{steps.get_certd_version.outputs.result}}
|
||||||
# - name: Build armv7
|
# - name: Build armv7
|
||||||
# uses: docker/build-push-action@v6
|
# uses: docker/build-push-action@v6
|
||||||
# with:
|
# with:
|
||||||
|
|
|
@ -85,6 +85,8 @@ https://certd.handfree.work/
|
||||||
* `https://hub.docker.com/r/greper/certd`
|
* `https://hub.docker.com/r/greper/certd`
|
||||||
* `greper/certd:latest`
|
* `greper/certd:latest`
|
||||||
* `greper/certd:armv7`、`greper/certd:[version]-armv7`
|
* `greper/certd:armv7`、`greper/certd:[version]-armv7`
|
||||||
|
* GitHub Packages地址:
|
||||||
|
* `ghcr.io/certd/certd:latest`
|
||||||
|
|
||||||
* 镜像构建通过`Actions`自动执行,过程公开透明,请放心使用
|
* 镜像构建通过`Actions`自动执行,过程公开透明,请放心使用
|
||||||
* [点我查看镜像构建日志](https://github.com/certd/certd/actions/workflows/build-image.yml)
|
* [点我查看镜像构建日志](https://github.com/certd/certd/actions/workflows/build-image.yml)
|
||||||
|
|
|
@ -9,6 +9,7 @@ import JSZip from "jszip";
|
||||||
|
|
||||||
export { CertReader };
|
export { CertReader };
|
||||||
export type { CertInfo };
|
export type { CertInfo };
|
||||||
|
export type PrivateKeyType = "rsa2048" | "rsa3072" | "rsa4096" | "rsa8192" | "ec256" | "ec384";
|
||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: "CertApplyLego",
|
name: "CertApplyLego",
|
||||||
|
@ -90,6 +91,28 @@ export class CertApplyLegoPlugin extends CertApplyBasePlugin {
|
||||||
})
|
})
|
||||||
customArgs = "";
|
customArgs = "";
|
||||||
|
|
||||||
|
@TaskInput({
|
||||||
|
title: "加密算法",
|
||||||
|
value: "ec256",
|
||||||
|
component: {
|
||||||
|
name: "a-select",
|
||||||
|
vModel: "value",
|
||||||
|
options: [
|
||||||
|
{ value: "rsa2048", label: "RSA 2048" },
|
||||||
|
{ value: "rsa3072", label: "RSA 3072" },
|
||||||
|
{ value: "rsa4096", label: "RSA 4096" },
|
||||||
|
{ value: "rsa8192", label: "RSA 8192" },
|
||||||
|
{ value: "ec256", label: "EC 256" },
|
||||||
|
{ value: "ec384", label: "EC 384" },
|
||||||
|
// { value: "ec_521", label: "EC 521" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
helper: "如无特殊需求,默认即可",
|
||||||
|
required: true,
|
||||||
|
})
|
||||||
|
privateKeyType!: PrivateKeyType;
|
||||||
|
|
||||||
|
|
||||||
eab?: EabAccess;
|
eab?: EabAccess;
|
||||||
|
|
||||||
async onInstance() {
|
async onInstance() {
|
||||||
|
@ -120,7 +143,7 @@ export class CertApplyLegoPlugin extends CertApplyBasePlugin {
|
||||||
if (this.eab) {
|
if (this.eab) {
|
||||||
eabArgs = ` --eab --kid "${this.eab.kid}" --hmac "${this.eab.hmacKey}"`;
|
eabArgs = ` --eab --kid "${this.eab.kid}" --hmac "${this.eab.hmacKey}"`;
|
||||||
}
|
}
|
||||||
const keyType = "-k rsa2048";
|
const keyType = `-k ${this.privateKeyType}`;
|
||||||
|
|
||||||
const saveDir = `./data/.lego/pipeline_${this.pipeline.id}/`;
|
const saveDir = `./data/.lego/pipeline_${this.pipeline.id}/`;
|
||||||
const savePathArgs = `--path "${saveDir}"`;
|
const savePathArgs = `--path "${saveDir}"`;
|
||||||
|
|
Loading…
Reference in New Issue