cnbcool/linguist-report:latest
UPLOAD_TOKEN:string 必填,用于后期结果上传校验
BODY_JSON:string 必填,上传的结果,json 格式
GEN_TOOL:string 必填,生成结果的工具名称
GEN_TOOL_VERSION:string 必填,生成结果的工具版本
master:
push:
- stages:
- name: linguist
image: cnbcool/linguist:latest
script: linguist -o linguist.json -f json ./
- name: show analysis
script: cat linguist.json
- name: upload analysis
image: cnbcool/linguist-report:latest
setting:
UPLOAD_TOKEN: ${UPLOAD_TOKEN}
BODY_JSON: ${BODY_JSON}
GEN_TOOL: ${GEN_TOOL}
GEN_TOOL_VER: ${GEN_TOOL_VER}