├── .gitignore ├── plugins ├── hugo │ └── hugo │ │ ├── logo.png │ │ ├── plugin-meta.json │ │ └── README.md ├── clair │ └── clair │ │ ├── logo.png │ │ ├── plugin-meta.json │ │ └── README.md ├── k8s │ └── kubectl │ │ ├── logo.png │ │ ├── plugin-meta.json │ │ └── README.md ├── php │ └── phplint │ │ ├── logo.png │ │ ├── plugin-meta.json │ │ └── README.md ├── wechat │ └── wechat │ │ ├── logo.png │ │ ├── plugin-meta.json │ │ └── README.md ├── tencentyun │ ├── coscmd │ │ ├── logo.png │ │ ├── plugin-meta.json │ │ └── README.md │ └── tccli │ │ ├── logo.png │ │ ├── plugin-meta.json │ │ └── README.md ├── markdown │ └── markdownlint-cli2 │ │ ├── logo.png │ │ ├── plugin-meta.json │ │ └── README.md ├── miniprogram │ └── qq-miniprogram │ │ ├── logo.png │ │ ├── README.md │ │ └── plugin-meta.json ├── yaml2json │ └── yaml2json │ │ ├── plugin-meta.json │ │ └── README.md ├── upx │ └── upx │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── rsync │ └── rsync │ │ ├── plugin-meta.json │ │ └── README.md ├── scp │ └── scp │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── ssh │ └── ssh │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── helm │ └── helm │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── pypi │ └── pypi │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── packer │ └── packer │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── email │ └── email │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── ftps │ └── ftps │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── helm3 │ └── helm3 │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── rancher │ └── rancher │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── snyk │ └── snyk │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── jenkins │ └── jenkins │ │ ├── plugin-meta.json │ │ └── README.md ├── terraform │ └── terraform │ │ ├── plugin-meta.json │ │ ├── logo.svg │ │ └── README.md ├── sonar-qube │ └── sonar-qube │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── webhook │ └── webhook │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── npm-auth │ └── npm-auth │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── artifactory │ └── artifactory │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── datadog │ └── datadog │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── kaniko │ └── kaniko │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── wechat-for-work │ └── wechat-for-work │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── gpgsign │ └── gpgsign │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── sftp-cache │ └── sftp-cache │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── codecov │ └── codecov │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── diagnostics │ └── diagnostics │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── download │ └── download │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── manifest │ └── manifest │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── grafana-annotation │ └── grafana-annotation │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg ├── newrelic-deployment │ └── newrelic-deployment │ │ ├── plugin-meta.json │ │ ├── README.md │ │ └── logo.svg └── ansible │ └── ansible │ ├── plugin-meta.json │ ├── logo.svg │ └── README.md ├── .editorconfig ├── .github └── workflows │ ├── receive-pr.yml │ └── after-receive-pr.yml └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /plugins/hugo/hugo/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/hugo/hugo/logo.png -------------------------------------------------------------------------------- /plugins/clair/clair/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/clair/clair/logo.png -------------------------------------------------------------------------------- /plugins/k8s/kubectl/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/k8s/kubectl/logo.png -------------------------------------------------------------------------------- /plugins/php/phplint/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/php/phplint/logo.png -------------------------------------------------------------------------------- /plugins/wechat/wechat/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/wechat/wechat/logo.png -------------------------------------------------------------------------------- /plugins/tencentyun/coscmd/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/tencentyun/coscmd/logo.png -------------------------------------------------------------------------------- /plugins/tencentyun/tccli/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/tencentyun/tccli/logo.png -------------------------------------------------------------------------------- /plugins/markdown/markdownlint-cli2/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/markdown/markdownlint-cli2/logo.png -------------------------------------------------------------------------------- /plugins/miniprogram/qq-miniprogram/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coding/ci-plugins/main/plugins/miniprogram/qq-miniprogram/logo.png -------------------------------------------------------------------------------- /plugins/miniprogram/qq-miniprogram/README.md: -------------------------------------------------------------------------------- 1 | # QQ小程序 2 | 3 | QQ小程序自动构建、支持上传并设置为体验版。 4 | 5 | 见官方文档 [https://q.qq.com/wiki/tools/ci/](https://q.qq.com/wiki/tools/ci/) 6 | -------------------------------------------------------------------------------- /plugins/yaml2json/yaml2json/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "yaml2json", 3 | "description": "将yaml转换为json格式", 4 | "mark": "社区", 5 | "tags": ["yaml", "json", "parse", "convert"], 6 | "images": "https://hub.docker.com/r/simplealpine/yaml2json", 7 | "source": "", 8 | "bugs": "", 9 | "logo": "" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/miniprogram/qq-miniprogram/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "QQ小程序", 3 | "description": "QQ小程序自动构建、支持上传并设置为体验版。", 4 | "mark": "官方", 5 | "tags": [ "小程序", "QQ", "miniprogram"], 6 | "images": "https://hub.docker.com/r/qqminiapp/build/tags", 7 | "link": "https://q.qq.com/wiki/tools/ci/", 8 | "logo": "logo.png" 9 | } -------------------------------------------------------------------------------- /plugins/upx/upx/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UPX", 3 | "description": "UPX压缩插件", 4 | "mark": "社区", 5 | "tags": ["upx", "compress"], 6 | "images": "https://hub.docker.com/r/cnbattle/drone-upx", 7 | "source": "https://github.com/cnbattle/drone-upx", 8 | "bugs": "https://github.com/cnbattle/drone-upx/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/rsync/rsync/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "rsync", 3 | "description": "rsync 文件同步工具", 4 | "tags": ["rsync", "publish", "transfer", "sync"], 5 | "mark": "社区", 6 | "images": "https://hub.docker.com/r/drillster/drone-rsync/tags", 7 | "source": "https://github.com/drillster/drone-rsync", 8 | "bugs": "https://github.com/Drillster/drone-rsync/issues" 9 | } -------------------------------------------------------------------------------- /plugins/scp/scp/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SCP", 3 | "description": "通过ssh复制文件或者代码", 4 | "mark": "社区", 5 | "tags": ["ssh", "transfer", "copy"], 6 | "images": "https://hub.docker.com/r/appleboy/drone-scp", 7 | "source": "https://github.com/appleboy/drone-scp", 8 | "bugs": "https://github.com/appleboy/drone-scp/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/ssh/ssh/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SSH", 3 | "description": "通过ssh在远端host执行命令", 4 | "mark": "社区", 5 | "tags": ["ssh", "remote", "command"], 6 | "images": "https://hub.docker.com/r/appleboy/drone-ssh", 7 | "source": "https://github.com/appleboy/drone-ssh", 8 | "bugs": "https://github.com/appleboy/drone-ssh/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/clair/clair/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Clair", 3 | "description": "通过Clair扫描docker镜像", 4 | "mark": "社区", 5 | "tags": [ "docker", "scan", "clair"], 6 | "images": "https://hub.docker.com/r/jmccann/drone-clair", 7 | "source": "https://github.com/jmccann/drone-clair", 8 | "bugs": "https://github.com/jmccann/drone-clair/issues", 9 | "logo": "logo.png" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/helm/helm/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "helm", 3 | "description": "Helm插件", 4 | "mark": "社区", 5 | "tags": ["helm", "deploy", "kubernetes", "k8s"], 6 | "images": "https://hub.docker.com/r/ipedrazas/drone-helm", 7 | "source": "https://github.com/ipedrazas/drone-helm", 8 | "bugs": "https://github.com/ipedrazas/drone-helm/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/pypi/pypi/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PyPI", 3 | "description": "发布python包", 4 | "mark": "社区", 5 | "tags": ["python", "publish"], 6 | "images": "https://hub.docker.com/r/drone-plugins/drone-pypi", 7 | "source": "https://github.com/drone-plugins/drone-pypi", 8 | "bugs": "https://github.com/drone-plugins/drone-pypi/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | [*.md] 11 | insert_final_newline = false 12 | trim_trailing_whitespace = false 13 | [*.yml] 14 | indent_size = 2 15 | [*.json] 16 | indent_size = 2 17 | -------------------------------------------------------------------------------- /plugins/packer/packer/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Packer", 3 | "description": "使用Packer自动化构建机器镜像", 4 | "mark": "社区", 5 | "tags": ["docker", "packer"], 6 | "images": "https://hub.docker.com/r/appleboy/drone-packer", 7 | "source": "https://github.com/appleboy/drone-packer", 8 | "bugs": "https://github.com/appleboy/drone-packer/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/email/email/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "email", 3 | "description": "通过email发送构建消息的插件", 4 | "mark": "社区", 5 | "tags": ["email", "notify", "message"], 6 | "images": "https://hub.docker.com/r/drillster/drone-email", 7 | "source": "https://github.com/drillster/drone-email", 8 | "bugs": "https://github.com/drillster/drone-email/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/ftps/ftps/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ftps", 3 | "description": "通过ftps上传制品的插件", 4 | "mark": "社区", 5 | "tags": ["publish", "ssh", "ftps", "archive"], 6 | "images": "https://hub.docker.com/r/cschlosser/drone-ftps", 7 | "source": "https://github.com/cschlosser/drone-ftps", 8 | "bugs": "https://github.com/cschlosser/drone-ftps/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/helm3/helm3/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "helm3", 3 | "description": "Helm3插件", 4 | "mark": "社区", 5 | "tags": ["helm", "helm3", "kubernetes", "deploy"], 6 | "images": "https://hub.docker.com/r/pelotech/drone-helm3", 7 | "source": "https://github.com/pelotech/drone-helm3", 8 | "bugs": "https://github.com/pelotech/drone-helm3/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/rancher/rancher/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Rancher", 3 | "description": "在Rancher 1.x部署或者更新项目", 4 | "mark": "社区", 5 | "tags": ["deployment", "rancher"], 6 | "images": "https://hub.docker.com/r/josmo/drone-rancher", 7 | "source": "https://github.com/josmo/drone-rancher", 8 | "bugs": "https://github.com/josmo/drone-rancher/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/snyk/snyk/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Snyk", 3 | "description": "使用snyk扫描容器镜像漏洞", 4 | "mark": "社区", 5 | "tags": ["scan", "snyk", "docker"], 6 | "images": "https://hub.docker.com/r/drone-plugins/drone-snyk", 7 | "source": "https://github.com/drone-plugins/drone-snyk", 8 | "bugs": "https://github.com/drone-plugins/drone-snyk/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/jenkins/jenkins/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jenkins", 3 | "description": "触发Jenkins Jobs的插件", 4 | "mark": "社区", 5 | "tags": ["jenkins", "ci", "trigger"], 6 | "images": "https://hub.docker.com/r/appleboy/drone-jenkins", 7 | "source": "https://github.com/appleboy/drone-jenkins", 8 | "bugs": "https://github.com/appleboy/drone-jenkins/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/terraform/terraform/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Terraform", 3 | "description": "执行Terraform plan和apply", 4 | "mark": "社区", 5 | "tags": ["terraform"], 6 | "images": "https://hub.docker.com/r/jmccann/drone-terraform", 7 | "source": "https://github.com/jmccann/drone-terraform", 8 | "bugs": "https://github.com/jmccann/drone-terraform/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/hugo/hugo/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "hugo", 3 | "description": "通过Hugo自动创建静态web页面的插件", 4 | "mark": "社区", 5 | "tags": ["hugo", "static", "website"], 6 | "images": "https://hub.docker.com/r/drone-plugins/drone-hugo", 7 | "source": "https://github.com/drone-plugins/drone-hugo", 8 | "bugs": "https://github.com/drone-plugins/drone-hugo/issues", 9 | "logo": "logo.png" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/sonar-qube/sonar-qube/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SonarQube", 3 | "description": "SonarQube扫描插件", 4 | "mark": "社区", 5 | "tags": ["scan", "sonar"], 6 | "images": "https://hub.docker.com/r/aosapps/drone-sonar-plugin", 7 | "source": "https://github.com/aosapps/drone-sonar-plugin", 8 | "bugs": "https://github.com/aosapps/drone-sonar-plugin/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/webhook/webhook/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Webhook", 3 | "description": "通过webhook发送构建状态通知", 4 | "mark": "社区", 5 | "tags": ["webhook", "notify"], 6 | "images": "https://hub.docker.com/r/drone-plugins/drone-webhook", 7 | "source": "https://github.com/drone-plugins/drone-webhook", 8 | "bugs": "https://github.com/drone-plugins/drone-webhook/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/wechat/wechat/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "wechat", 3 | "description": "基于微信企业号封装的,微信发消息插件。", 4 | "mark": "社区", 5 | "tags": ["微信", "wechat", "message", "notify"], 6 | "images": "https://hub.docker.com/r/lizheming/drone-wechat", 7 | "source": "https://github.com/lizheming/drone-wechat", 8 | "bugs": "https://github.com/lizheming/drone-wechat/issues", 9 | "logo": "logo.png" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/npm-auth/npm-auth/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "NPM Auth", 3 | "description": "通过在本地生成.npmrc文件验证公有和私有NPM仓库", 4 | "mark": "社区", 5 | "images": "https://hub.docker.com/r/robertstettner/drone-npm-auth", 6 | "source": "https://github.com/robertstettner/drone-npm-auth", 7 | "bugs": "https://github.com/robertstettner/drone-npm-auth/issues", 8 | "tags": ["npm"], 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/artifactory/artifactory/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Artifactory", 3 | "description": "发布文件或者制品到制品库插件", 4 | "mark": "社区", 5 | "tags": [ "publish", "archive"], 6 | "images": "https://hub.docker.com/r/lathieriot/drone-artifactory", 7 | "source": "https://github.com/athieriot/drone-artifactory", 8 | "bugs": "https://github.com/athieriot/drone-artifactory/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/datadog/datadog/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Datadog", 3 | "description": "发送events和metrics到Datadog", 4 | "mark": "社区", 5 | "tags": [ "monitoring", "metrics", "events", "report"], 6 | "images": "https://hub.docker.com/r/masci/drone-datadog", 7 | "source": "https://github.com/masci/drone-datadog", 8 | "bugs": "https://github.com/masci/drone-datadog/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/kaniko/kaniko/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kaniko", 3 | "description": "调用官方Google Kaniko的插件", 4 | "mark": "社区", 5 | "tags": ["kaniko", "docker", "k8s", "kubernetes"], 6 | "images": "https://hub.docker.com/r/banzaicloud/drone-kaniko", 7 | "source": "https://github.com/banzaicloud/drone-kaniko", 8 | "bugs": "https://github.com/banzaicloud/drone-kaniko/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/wechat-for-work/wechat-for-work/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Wechat for Work", 3 | "description": "通过企业微信发送构建状态通知", 4 | "mark": "社区", 5 | "tags": ["wework", "message", "notify"], 6 | "images": "https://hub.docker.com/r/clem109/drone-wechat", 7 | "source": "https://github.com/clem109/drone-wechat", 8 | "bugs": "https://github.com/clem109/drone-wechat/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/gpgsign/gpgsign/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gpgsign", 3 | "description": "通过GunPG给制品加密的插件", 4 | "mark": "社区", 5 | "tags": ["gunpg", "encrypt", "sign", "archive"], 6 | "images": "https://hub.docker.com/r/drone-plugins/drone-gpgsign", 7 | "source": "https://github.com/drone-plugins/drone-gpgsign", 8 | "bugs": "https://github.com/drone-plugins/drone-gpgsign/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/sftp-cache/sftp-cache/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SFTP Cache", 3 | "description": "使用rsync将制品缓存到中央服务器", 4 | "mark": "社区", 5 | "tags": ["cache", "sftp", "rsync", "sync"], 6 | "images": "https://hub.docker.com/r/appleboy/drone-sftp-cache", 7 | "source": "https://github.com/appleboy/drone-sftp-cache", 8 | "bugs": "https://github.com/appleboy/drone-sftp-cache/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/codecov/codecov/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Codecov", 3 | "description": "推送测试报告到Codecov", 4 | "mark": "社区", 5 | "tags": [ "test","publish", "report", "codecov" ], 6 | "images": "https://hub.docker.com/r/robertstettner/drone-codecov", 7 | "source": "https://github.com/robertstettner/drone-codecov", 8 | "bugs": "https://github.com/robertstettner/drone-codecov/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/diagnostics/diagnostics/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "diagnostics", 3 | "description": "用来诊断构建中问题的带cli工具的插件", 4 | "mark": "社区", 5 | "tags": ["cli", "tools"], 6 | "images": "https://hub.docker.com/r/drone-plugins/drone-diagnostics", 7 | "source": "https://github.com/drone-plugins/drone-diagnostics", 8 | "bugs": "https://github.com/drone-plugins/drone-diagnostics/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/download/download/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "download", 3 | "description": "下载构建所需文件的插件", 4 | "mark": "社区", 5 | "tags": ["tarball", "archive", "retrieve", "download"], 6 | "images": "https://hub.docker.com/r/drone-plugins/drone-download", 7 | "source": "https://github.com/drone-plugins/drone-download", 8 | "bugs": "https://github.com/drone-plugins/drone-download/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/manifest/manifest/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Manifest", 3 | "description": "推送Docker manifest多架构镜像文件的插件", 4 | "mark": "社区", 5 | "tags": ["manifest", "docker", "publish", "arch"], 6 | "images": "https://hub.docker.com/r/drone-plugins/drone-manifest", 7 | "source": "https://github.com/drone-plugins/drone-manifest", 8 | "bugs": "https://github.com/drone-plugins/drone-manifest/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/tencentyun/coscmd/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "对象存储命令行", 3 | "description": "使用 COSCMD 工具,用户可通过简单的命令行指令实现对对象(Object)的批量上传、下载、删除等操作。", 4 | "tags": ["腾讯云", "cos", "transfer", "cloud"], 5 | "logo": "logo.png", 6 | "mark": "官方", 7 | "source": "https://github.com/tencentyun/coscmd", 8 | "bugs": "https://github.com/tencentyun/coscmd/issues", 9 | "images": "https://hub.docker.com/r/tencentcom/tencentyun-coscmd/tags" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/php/phplint/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "phplint", 3 | "description": "phplint is a tool that can speed up linting of php files by running several lint processes at once.", 4 | "tags": ["lint", "php"], 5 | "mark": "社区", 6 | "source": "https://github.com/overtrue/phplint", 7 | "bugs": "https://github.com/overtrue/phplint/issues", 8 | "images": "https://hub.docker.com/r/overtrue/phplint/tags", 9 | "logo": "logo.png" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/k8s/kubectl/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "kubectl", 3 | "description": "Kubectl 是 Kubernetes 命令行接口。通过 Kubectl 命令可以方便的管理 Kubernetes 集群。Kubectl 同样可以管理腾讯云 TKE 集群。", 4 | "mark": "社区", 5 | "tags": ["腾讯云", "cloud", "tke", "kubectl"], 6 | "images": "https://hub.docker.com/r/bitnami/kubectl", 7 | "source": "https://github.com/kubernetes/kubectl", 8 | "bugs": "https://github.com/kubernetes/kubectl/issues", 9 | "logo": "logo.png" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/grafana-annotation/grafana-annotation/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grafana-annotation", 3 | "description": "在Grafana中创建注解的插件", 4 | "mark": "社区", 5 | "tags": ["annotation", "grafana"], 6 | "images": "https://hub.docker.com/r/fdeschenes/drone-grafana-annotation", 7 | "source": "https://github.com/fdeschenes/drone-grafana-annotation", 8 | "bugs": "https://github.com/fdeschenes/drone-grafana-annotation/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/tencentyun/tccli/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "腾讯云命令行", 3 | "description": "通过腾讯云命令行工具,您可以快速轻松的调用腾讯云 API来管理您的腾讯云资源", 4 | "tags": ["腾讯云", "cli", "api"], 5 | "mark": "官方", 6 | "images": "https://hub.docker.com/r/tencentcom/tencentcloud-cli/tags", 7 | "source": "https://github.com/TencentCloud/tencentcloud-cli", 8 | "bugs": "https://github.com/TencentCloud/tencentcloud-cli/issues", 9 | "logo": "logo.png" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/newrelic-deployment/newrelic-deployment/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Newrelic Deployment", 3 | "description": "将部署报告记录到dashboard", 4 | "mark": "社区", 5 | "tags": ["report", "dashboard", "newrelic"], 6 | "images": "https://hub.docker.com/r/cityfurniture/newrelic-deployment", 7 | "source": "https://github.com/cityfurniture/newrelic-deployment", 8 | "bugs": "https://github.com/cityfurniture/newrelic-deployment/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/markdown/markdownlint-cli2/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "markdownlint-cli2", 3 | "description": "linting Markdown files with the markdownlint.", 4 | "tags": ["markdown", "lint"], 5 | "mark": "社区", 6 | "images": "https://hub.docker.com/r/davidanson/markdownlint-cli2/tags", 7 | "source": "https://github.com/DavidAnson/markdownlint-cli2", 8 | "bugs": "https://github.com/DavidAnson/markdownlint-cli2/issues", 9 | "logo": "logo.png" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/ansible/ansible/plugin-meta.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Ansible", 3 | "description": "Ansible can help you demonstrate value, connect teams, and deliver efficiencies for your organization. ", 4 | "tags": ["publish", "rsync", "transfer", "ssh"], 5 | "mark": "社区", 6 | "images": "https://hub.docker.com/r/plugins/ansible/tags", 7 | "source": "https://github.com/drone-plugins/drone-ansible", 8 | "bugs": "https://github.com/drone-plugins/drone-ansible/issues", 9 | "logo": "logo.svg" 10 | } 11 | -------------------------------------------------------------------------------- /plugins/tencentyun/tccli/README.md: -------------------------------------------------------------------------------- 1 | # 腾讯云命令行工具(TCCLI) 2 | 3 | 通过腾讯云命令行工具,您可以快速轻松的调用腾讯云 API来管理您的腾讯云资源。 4 | 5 | ## 在 Docker 上使用 6 | 7 | ```shell 8 | docker run --rm -it tencentcom/tencentcloud-cli --version 9 | docker run --rm -it tencentcom/tencentcloud-cli help 10 | ``` 11 | 12 | ## 在 云原生构建 上使用 13 | 14 | ```yaml 15 | main: 16 | push: 17 | - stages: 18 | - name: run with tencentcloud-cli 19 | image: tencentcom/tencentcloud-cli 20 | commands: | 21 | tccli --version 22 | tccli help 23 | ``` 24 | -------------------------------------------------------------------------------- /plugins/sonar-qube/sonar-qube/README.md: -------------------------------------------------------------------------------- 1 | # SonarQube 2 | 3 | SonarQube 扫描插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: sonar-analysis 12 | image: aosapps/drone-sonar-plugin 13 | settings: 14 | sonar_host: your-sonar-host 15 | sonar_token: your-sonar-token 16 | ``` 17 | 18 | ## 参数含义 19 | 20 | sonar_host: sonar 服务所在域名 21 | 22 | sonar_token: sonar 服务授权 token 23 | 24 | ## 更多用法 25 | 26 | 更多用法参考:[aosapps/drone-sonar-plugin](https://github.com/aosapps/drone-sonar-plugin)。 27 | -------------------------------------------------------------------------------- /plugins/codecov/codecov/README.md: -------------------------------------------------------------------------------- 1 | # Codecov 2 | 3 | 推送测试报告到Codecov 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: codecov 12 | image: robertstettner/drone-codecov 13 | settings: 14 | token: your-codacy-token 15 | ``` 16 | 17 | ## 参数 18 | 19 | * `token`:设置专用存储库令牌。必修的 20 | 21 | * `files`:要上载的目标文件列表。可选择的 22 | 23 | * `flags`:标记上载到组的覆盖率度量。可选择的 24 | 25 | * `debug`:调试模式,默认为`false` 26 | 27 | ## 更多用法 28 | 29 | 更多用法参考:[robertstettner/drone-codecov](https://github.com/robertstettner/drone-codecov) 30 | -------------------------------------------------------------------------------- /plugins/upx/upx/README.md: -------------------------------------------------------------------------------- 1 | # UPX 2 | 3 | UPX 压缩插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: upx 12 | image: cnbattle/drone-upx 13 | settings: 14 | level: 9 //default 5 15 | save_file: ./executable_upx_file 16 | original_file: ./executable_original_file 17 | ``` 18 | 19 | ## 参数含义 20 | 21 | level 22 | : 压缩级别,取值在1到9之间,越大越好。 23 | 24 | original_file 25 | : 待处理的原始文件。 26 | 27 | save_file 28 | : 保存压缩文件的路径和文件名。 29 | 30 | ## 更多用法 31 | 32 | 更多用法参考:[cnbattle/drone-upx](https://github.com/cnbattle/drone-upx)。 33 | -------------------------------------------------------------------------------- /plugins/newrelic-deployment/newrelic-deployment/README.md: -------------------------------------------------------------------------------- 1 | # Newrelic Deployment 2 | 3 | 将部署报告记录到 dashboard。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: newrelic 12 | image: cityfurniture/drone-newrelic-deployment 13 | settings: 14 | api_key: 15 | app_name: 16 | ``` 17 | 18 | ## 参数含义 19 | 20 | app_id 21 | : Newrelic APP ID。 22 | 23 | api_key 24 | : Newrelic API Key,在生成前验证配置文件。 25 | 26 | ## 更多用法 27 | 28 | 更多用法参考:[cityfurniture/newrelic-deployment](https://github.com/cityfurniture/newrelic-deployment)。 29 | -------------------------------------------------------------------------------- /plugins/yaml2json/yaml2json/README.md: -------------------------------------------------------------------------------- 1 | # yaml2json 2 | 3 | 将 yaml 转换为 json 格式。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: yaml2json 12 | image: simplealpine/yaml2json 13 | settints: 14 | args: data.yaml 15 | 16 | ``` 17 | 18 | data.yaml: 19 | 20 | ```yml 21 | people: 22 | - 23 | name: yyy 24 | age: 18 25 | - 26 | name: zzz 27 | age: 19 28 | ``` 29 | 30 | ## 参数含义 31 | 32 | args: yaml文件 33 | 34 | ## 更多用法 35 | 36 | 在docker中使用: 37 | docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) simplealpine/yaml2json test.yaml 38 | -------------------------------------------------------------------------------- /plugins/jenkins/jenkins/README.md: -------------------------------------------------------------------------------- 1 | # Jenkins 2 | 3 | 触发 Jenkins Jobs 的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: trigger jenkins job 12 | image: appleboy/drone-jenkins 13 | settings: 14 | url: http://example.com 15 | user: appleboy 16 | token: xxxxxxxxxx 17 | job: drone-jenkins-plugin-job 18 | ``` 19 | 20 | ## 参数含义 21 | 22 | url 23 | : jenkins 服务地址。 24 | 25 | user 26 | : jenkins 用户账号。 27 | 28 | token 29 | : jenkins 用户 token。 30 | 31 | job 32 | : jenkins job 名称。 33 | 34 | ## 更多用法 35 | 36 | 更多用法参考:[appleboy/drone-jenkins](https://github.com/appleboy/drone-jenkins)。 37 | -------------------------------------------------------------------------------- /plugins/rsync/rsync/README.md: -------------------------------------------------------------------------------- 1 | # rsync 2 | 3 | rsync 同步文件工具。 4 | 5 | ## 在 Docker 上使用 6 | 7 | ```shell 8 | docker run --rm -t -v $(pwd):$(pwd) -w $(pwd) drillster/drone-rsync . 9 | ``` 10 | 11 | ## 在 云原生构建 上使用 12 | 13 | ```yml 14 | main: 15 | push: 16 | - stages: 17 | - name: rsync 18 | image: drillster/drone-rsync 19 | settings: 20 | key: xxx 21 | hosts: 22 | - ip1 23 | - ip2 24 | target: . 25 | prescript: echo 'pre script' 26 | script: echo 'script' 27 | args: args 28 | ``` 29 | 30 | ## 更多用法 31 | 32 | 更多用法参考:[Drillster/drone-rsync](https://github.com/Drillster/drone-rsync)。 33 | -------------------------------------------------------------------------------- /plugins/pypi/pypi/README.md: -------------------------------------------------------------------------------- 1 | # PyPI 2 | 3 | 发布 python 包。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: pypi_publish 12 | image: plugins/pypi 13 | settings: 14 | username: john 15 | password: secret 16 | ``` 17 | 18 | ## 参数含义 19 | 20 | username 21 | : 用于 pypi 包发布的用户名。 22 | 23 | password 24 | : :用于 pypi 包发布的密码。 25 | 26 | repository 27 | : 要发布的仓库地址。 28 | 29 | distributions 30 | : 要发布的分法类型列表。 31 | 32 | setupfile 33 | : 工作空间根目录到要使用的 setup.py 文件的相对路径。 34 | 35 | skip_build 36 | : 跳过构建,只从 `dist/*` 上传预构建文件。 37 | 38 | ## 更多用法 39 | 40 | 更多用法参考:[drone-plugins/drone-pypi](https://github.com/drone-plugins/drone-pypi)。 41 | -------------------------------------------------------------------------------- /plugins/diagnostics/diagnostics/README.md: -------------------------------------------------------------------------------- 1 | # diagnostics 2 | 3 | 一个 cli 工具插件,用于诊断构建过程中出现的问题。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | 插件内置了一些诊断工具,可以用命令行来调用它们。 8 | 9 | 内置的工具: 10 | 11 | - ping 12 | - traceroute 13 | - dig 14 | 15 | ```yml 16 | main: 17 | push: 18 | - stages: 19 | - name: run plugins/drone-diagnostics plugin 20 | image: plugins/drone-diagnostics 21 | commands: 22 | - env 23 | - ping www.github.com -w 5 24 | - traceroute -T -p 443 www.github.com 25 | - dig www.apple.com 26 | - echo "end of test" 27 | ``` 28 | 29 | ## 更多用法 30 | 31 | 更多用法参考: 32 | [drone-plugins/drone-diagnostics](https://github.com/drone-plugins/drone-diagnostics)。 33 | -------------------------------------------------------------------------------- /plugins/tencentyun/coscmd/README.md: -------------------------------------------------------------------------------- 1 | # 腾讯云 COS 命令行工具 2 | 3 | 使用 COSCMD 工具,用户可通过简单的命令行指令实现对对象(Object)的批量上传、下载、删除等操作。 4 | 5 | ## 在 Docker 上使用 6 | 7 | ```shell 8 | docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) tencentcom/tencentyun-coscmd --version 9 | docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) tencentcom/tencentyun-coscmd -h 10 | ``` 11 | 12 | ## 在 云原生构建 上使用 13 | 14 | ```yaml 15 | main: 16 | push: 17 | - stages: 18 | - name: run with tencentyun-coscmd 19 | image: tencentcom/tencentyun-coscmd 20 | commands: | 21 | coscmd --version 22 | coscmd -h 23 | ``` 24 | 25 | ## 更多用法 26 | 27 | 更多用法,参照 [COSCMD 工具][t-url] 28 | 29 | [t-url]:https://cloud.tencent.com/document/product/436/10976 30 | -------------------------------------------------------------------------------- /plugins/download/download/README.md: -------------------------------------------------------------------------------- 1 | # download 2 | 3 | 下载构建所需文件的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: download 12 | image: plugins/download 13 | settings: 14 | source: https://github.com/drone/drone-cli/releases/download/v0.8.5/drone_linux_amd64.tar.gz 15 | ``` 16 | 17 | ## 参数含义 18 | 19 | source 20 | : 下载的源URL。 21 | 22 | destination 23 | : 下载目标路径。 24 | 25 | username 26 | : basic auth 的用户名。 27 | 28 | password 29 | : basic auth 的密码。 30 | 31 | skip_verify 32 | : 跳过 SSL 校验。 33 | 34 | md5 35 | : MD5格式的校验和。 36 | 37 | sha256 38 | : SHA256格式的校验和。 39 | 40 | ## 更多用法 41 | 42 | 更多用法参考:[drone-plugins/drone-download](https://github.com/drone-plugins/drone-download)。 43 | -------------------------------------------------------------------------------- /.github/workflows/receive-pr.yml: -------------------------------------------------------------------------------- 1 | name: Receive PR 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - main 7 | 8 | jobs: 9 | lint: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: checkout 13 | uses: actions/checkout@v3 14 | - name: plugin-lint 15 | uses: docker://codingci/plugin-lint:latest 16 | - name: markdown-lint 17 | uses: docker://tencentcom/markdown-lint:latest 18 | 19 | - name: Save the PR number in an artifact 20 | shell: bash 21 | env: 22 | PR_NUM: ${{ github.event.number }} 23 | run: echo $PR_NUM > pr_num.txt 24 | - name: Upload the PR number 25 | uses: actions/upload-artifact@v2 26 | with: 27 | name: pr_num 28 | path: ./pr_num.txt 29 | -------------------------------------------------------------------------------- /plugins/gpgsign/gpgsign/README.md: -------------------------------------------------------------------------------- 1 | # gpgsign 2 | 3 | 通过 GunPG 给制品加密的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: sign 12 | image: plugins/gpgsign 13 | settings: 14 | key: your-base64-encoded-private-key 15 | passphrase: p455w0rd 16 | files: 17 | - dist/* 18 | 19 | ``` 20 | 21 | ## 参数 22 | 23 | key 24 | : 私有GnuPG密钥,可选base64编码。 25 | 26 | passphrase 27 | : 用于解锁私钥的passphrase。 28 | 29 | detach_sign 30 | : 生成 detach-sign 签名。 31 | 32 | clear_sign 33 | : 生成 clear-sign 签名。 34 | 35 | files, file 36 | : 要匹配文件的globs列表。 37 | 38 | excludes, exclude 39 | : 要排除文件的pattern列表。 40 | 41 | ## 更多用法 42 | 43 | 更多用法参考:[drone-plugins/drone-gpgsign](https://github.com/drone-plugins/drone-gpgsign) 44 | -------------------------------------------------------------------------------- /plugins/grafana-annotation/grafana-annotation/README.md: -------------------------------------------------------------------------------- 1 | # grafana-annotation 2 | 3 | 在 Grafana 中创建注解的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: annotate 12 | image: fdeschenes/drone-grafana-annotation 13 | settings: 14 | api_key: xxxxx 15 | image: fdeschenes/drone-grafana-annotation 16 | tags: 17 | - deploy 18 | - production 19 | text: "Deployed" 20 | url: https://grafana.example.com 21 | 22 | ``` 23 | 24 | ## 参数含义 25 | 26 | api_key 27 | : api key。 28 | 29 | tags 30 | : tag 列表。 31 | 32 | text 33 | : 描述。 34 | 35 | url 36 | : 服务器 url。 37 | 38 | ## 更多用法 39 | 40 | 更多用法参考:[fdeschenes/drone-grafana-annotation](https://github.com/fdeschenes/drone-grafana-annotation) 41 | -------------------------------------------------------------------------------- /plugins/terraform/terraform/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugins/npm-auth/npm-auth/README.md: -------------------------------------------------------------------------------- 1 | # NPM Auth 2 | 3 | 通过在本地生成 .npmrc 文件验证公有和私有 NPM 仓库。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: npm-auth 12 | image: robertstettner/drone-npm-auth 13 | settings: 14 | username: joebloggs 15 | password: mypass 16 | email: jb@me.com 17 | ``` 18 | 19 | ## 参数含义 20 | 21 | npm_username 22 | : NPM 用户名。 23 | 24 | npm_password 25 | : NPM 密码。 26 | 27 | npm_email 28 | : NPM 邮件。 29 | 30 | username 31 | : NPM 用户名,必选。 32 | 33 | password 34 | : NPM 密码,必选。 35 | 36 | email 37 | : NPM 邮件,必选。 38 | 39 | registry 40 | : NPM 注册表。 41 | 42 | scope 43 | : NPM authentication 范围,可选。 44 | 45 | path 46 | : 生成的 .npmrc 文件的输出路径,默认为 `./`。 47 | 48 | ## 更多用法 49 | 50 | 更多用法参考:[robertstettner/drone-npm-auth](https://github.com/robertstettner/drone-npm-auth)。 51 | -------------------------------------------------------------------------------- /plugins/hugo/hugo/README.md: -------------------------------------------------------------------------------- 1 | # Hugo 2 | 3 | 通过 Hugo 自动创建静态 web 页面的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: build 12 | image: plugins/hugo 13 | settings: 14 | hugo_version: 0.55 15 | validate: true 16 | ``` 17 | 18 | ## 参数含义 19 | 20 | buildDrafts 21 | : 包括标记为草稿的内容。 22 | 23 | buildExpired 24 | : 包括过期的内容。 25 | 26 | buildFuture 27 | : 包含未来发布日期的内容。 28 | 29 | config 30 | : 配置文件(默认路径/config.yaml|json|toml)。 31 | 32 | content 33 | : 内容目录的文件系统路径。 34 | 35 | layout 36 | : 设计目录的文件系统路径。 37 | 38 | output 39 | : 写入文件的文件系统路径。 40 | 41 | source 42 | : 读取文件的文件系统路径。 43 | 44 | theme 45 | : 要使用的主题(位于/themes/THEMENAME/)。 46 | 47 | url 48 | : 根目录的主机名(和路径)。 49 | 50 | validate 51 | : 生成之前验证配置文件。 52 | 53 | ## 更多用法 54 | 55 | 更多用法参考:[drone-plugins/drone-hugo](https://github.com/drone-plugins/drone-hugo)。 56 | -------------------------------------------------------------------------------- /plugins/php/phplint/README.md: -------------------------------------------------------------------------------- 1 | # phplint 2 | 3 | `phplint` 是一个可以通过一次运行几个 lint 进程来加速 PHP 文件检查的代码检查工具, 4 | 5 | ## 使用方法 6 | 7 | 默认情况下,命令将会自动读取项目内的 `.phplint.yml` 进行配置。 8 | 9 | ```yaml 10 | path: ./ 11 | jobs: 10 12 | extensions: 13 | - php 14 | exclude: 15 | - vendor 16 | ``` 17 | 18 | ## 在 Docker 上使用 19 | 20 | ```shell 21 | docker run --rm -t -v $(pwd):$(pwd) -w $(pwd) overtrue/phplint . 22 | ``` 23 | 24 | ## 在 云原生构建 中使用 25 | 26 | ```yaml 27 | # .cnb.yml 28 | main: 29 | pull_request: 30 | - stages: 31 | - name: git diff phplint 32 | image: overtrue/phplint 33 | commands: | 34 | phplint -h 35 | ``` 36 | 37 | ## 在 Coding-CI 中使用 38 | 39 | ```yaml 40 | # .coding-ci.yml 41 | master: 42 | merge_request: 43 | - stages: 44 | - name: git diff phplint 45 | image: overtrue/phplint 46 | commands: | 47 | phplint -h 48 | ``` 49 | -------------------------------------------------------------------------------- /plugins/kaniko/kaniko/README.md: -------------------------------------------------------------------------------- 1 | # Kaniko 2 | 3 | 调用官方 Google Kaniko 的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: kaniko 12 | image: plugins/kaniko 13 | settings: 14 | username: kevinbacon 15 | password: pa55word 16 | repo: foo/bar 17 | tags: latest 18 | ``` 19 | 20 | ## 参数含义 21 | 22 | registry 23 | : 对此注册表进行身份验证。 24 | 25 | username 26 | : 使用此用户名进行身份验证。 27 | 28 | password 29 | : 使用此密码进行身份验证。 30 | 31 | repo 32 | : 镜像仓库名。 33 | 34 | tags 35 | : 镜像仓库tag。 36 | 37 | dockerfile 38 | : 要使用的dockerfile,默认为 Dockerfile。 39 | 40 | context 41 | : 要使用的上下文路径, 默认为 git 仓库根目录。 42 | 43 | target 44 | : 要使用的构建目标,必须在 dockerfile 中定义。 45 | 46 | build_args 47 | : 传递给 docker build 的自定义参数。 48 | 49 | ## 更多用法 50 | 51 | 更多用法参考:[banzaicloud/drone-kaniko](https://github.com/banzaicloud/drone-kaniko)。 52 | -------------------------------------------------------------------------------- /plugins/wechat-for-work/wechat-for-work/README.md: -------------------------------------------------------------------------------- 1 | # Wechat for Work 2 | 3 | 通过企业微信发送构建状态通知。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: wechat 12 | image: clem109/drone-wechat 13 | settings: 14 | corpid: corpid 15 | corp_secret: secret 16 | agent_id: 1234567 17 | title: ${CODING_REPO_NAME} 18 | description: "hello" 19 | msg_url: ${CODING_BUILD_WEB_URL} 20 | btn_txt: btn 21 | ``` 22 | 23 | ## 参数含义 24 | 25 | * `corpid` - 授权的 corpid。 26 | * `corp_secret` - 授权的corp secret。 27 | * `agent_id` - 发送消息的代理 ID。 28 | * `to_party` - 发送消息的组织 ID。 29 | * `to_user` - 要将消息发送到的用户 ID。 30 | * `to_tag` - 要将消息发送到的tag ID。 31 | * `title` - 消息的标题。 32 | * `description` - 消息的文字描述。 33 | * `msg_url` - 发送消息的代理 ID。 34 | * `btntxt` - 消息按钮上的文本。 35 | 36 | ## 更多用法 37 | 38 | 更多用法参考:[clem109/drone-wechat](https://github.com/clem109/drone-wechat)。 39 | -------------------------------------------------------------------------------- /plugins/artifactory/artifactory/README.md: -------------------------------------------------------------------------------- 1 | # Artifactory 2 | 3 | 发布文件或者制品到制品库。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: artifactory 12 | image: athieriot/drone-artifactory 13 | settings: 14 | url: http://arti.company.com 15 | username: admin 16 | password: password 17 | pom: pom.xml 18 | files: 19 | - target/*.jar 20 | - target/*.war 21 | ``` 22 | 23 | ## 参数 24 | 25 | * `url`-项目url(包括scheme)。 26 | 27 | * `username`-制品库用户名,默认为空。 28 | 29 | * `password`-制品库密码,默认为空。 30 | 31 | * `pom`-用于读取项目详细信息的可选的pom.xml路径。 32 | 33 | * `group_id`-项目组id,默认为Pom文件中的值。 34 | 35 | * `artifact_id`-项目项目id,默认为Pom文件中的值。 36 | 37 | * `version`-制品版本,默认为Pom文件中的值。 38 | 39 | * `repo_key`-目标存储库密钥。 40 | 41 | * `files`-要部署的文件列表。 42 | 43 | * `force_upload`-如果文件已存在,则强制上传。 44 | 45 | ## 更多用法 46 | 47 | 更多用法参考:[athieriot/drone-artifactory](https://github.com/athieriot/drone-artifactory)。 48 | -------------------------------------------------------------------------------- /plugins/ftps/ftps/README.md: -------------------------------------------------------------------------------- 1 | # ftps 2 | 3 | 通过 ftps 上传制品的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: deploy 12 | image: cschlosser/drone-ftps 13 | env: 14 | FTP_PASSWORD: xxx 15 | FTP_USERNAME: xxx 16 | settings: 17 | hostname: example.com:21 18 | secrets: [ ftp_username, ftp_password ] 19 | ``` 20 | 21 | ## 参数 22 | 23 | hostname 24 | : FTP主机,包括端口。 25 | 26 | clean_dir 27 | : 如果设置为true,将在文件传输之前清理目标目录。 28 | 29 | chmod 30 | : 如果设置为true,将在文件传输后执行```chmod```。 31 | 32 | verify 33 | : 如果设置为true,则强制SSL证书验证,否则无验证(默认为true)。 34 | 35 | secure 36 | : 如果设置为true,则强制FTPS,否则使用普通FTP(默认为true)。 37 | 38 | dest_dir 39 | : 将文件放在远程服务器上的位置(默认/)。 40 | 41 | src_dir 42 | : 用于上传的本地目录(默认值./)。 43 | 44 | exclude 45 | : egrep-like模式匹配从上传的文件中排除文件(默认无)。 46 | 47 | include 48 | : egrep类模式匹配要上传的文件(默认为无)。 49 | 50 | ## 更多用法 51 | 52 | 更多用法参考:[cschlosser/drone-ftps](https://github.com/cschlosser/drone-ftps)。 53 | -------------------------------------------------------------------------------- /plugins/email/email/README.md: -------------------------------------------------------------------------------- 1 | # email 2 | 3 | 通过 email 发送构建消息的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: notify 12 | image: drillster/drone-email 13 | settings: 14 | host: smtp.some-server.com 15 | username: foo 16 | password: bar 17 | from: drone@your-domain.com 18 | ``` 19 | 20 | ## 参数 21 | 22 | from 23 | : 从此地址发送通知。 24 | 25 | host 26 | : SMTP服务器主机。 27 | 28 | port 29 | : SMTP服务器主机 `587`。 30 | 31 | username 32 | : SMTP 用户名。 33 | 34 | password 35 | : SMTP 密码。 36 | 37 | skip_verify 38 | : 跳过证书验证,默认为 `false`。 39 | 40 | recipients 41 | : 发送此邮件的收件人列表。 42 | 43 | recipients_file 44 | : 用于加载其他收件人的文件名。 45 | 46 | recipients_only 47 | : 不将邮件发送给提交作者,而只发送给收件人,默认为 `false`。 48 | 49 | subject 50 | : subject 行模版。 51 | 52 | body 53 | : 电子邮件正文模板。 54 | 55 | attachment 56 | : 附加到已发送邮件的可选文件。 57 | 58 | ## 更多用法 59 | 60 | 更多用法参考:[drillster/drone-email](https://github.com/drillster/drone-email)。 61 | -------------------------------------------------------------------------------- /plugins/datadog/datadog/README.md: -------------------------------------------------------------------------------- 1 | # Datadog 2 | 3 | 发送 events 和 metrics 到 Datadog 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: count-pipeline 12 | image: masci/drone-datadog 13 | # https://xxx/secret.yaml中存放变量DATADOG_API_KEY 14 | imports: https://xxx/secret.yaml 15 | settings: 16 | api_key: $DATADOGAPIKEY 17 | metrics: 18 | - type: "count" 19 | name: "masci.pipelines.count" 20 | value: 1.0 21 | tags: ["project:${CODING_PROJECT_NAME}", "branch:${CODING_BRANCH}"] 22 | ``` 23 | 24 | ## 参数 25 | 26 | * `api_key`:用于发送 metrics 和 events 的 Datadog API密钥 27 | 28 | * `dry_run`:当设置为`true`时,插件只计算 metrics 和 events,而不计算向 Datadog 入口发送任何信息 29 | 30 | * `metrics`:要发送到 Datadog 的度量列表 31 | 32 | * `events`:要发送到 Datadog 的事件列表。事件必须具有 `title` 和 `text` 33 | 34 | * `alert_type`默认为`info` 35 | 36 | ## 更多用法 37 | 38 | 更多用法参考:[masci/drone-datadog](https://github.com/masci/drone-datadog) 39 | -------------------------------------------------------------------------------- /plugins/packer/packer/README.md: -------------------------------------------------------------------------------- 1 | # Packer 2 | 3 | 使用 Packer 自动化构建机器镜像。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: packer 12 | image: appleboy/drone-packer 13 | settings: 14 | template: aws.json 15 | actions: build 16 | ``` 17 | 18 | ## 参数含义 19 | 20 | actions 21 | : packer 执行的 action 列表。 22 | 23 | vars 24 | : 要传递给 Packer `build` 命令的变量映射。 25 | 26 | var_files 27 | : 要使用的 var 文件列表,每个值都以 -var-file= `value` 传递。 28 | 29 | except 30 | : 验证或构建除except之外的所有构建。 31 | 32 | only 33 | : 仅验证或构建指定构建。 34 | 35 | template 36 | : json 文件,并行执行多个构建。 37 | 38 | syntax_only 39 | : 只检查语法,默认为 `false`。 40 | 41 | color 42 | : 禁用颜色输出(默认开启),默认为 `false`。 43 | 44 | debug 45 | : 为构建启用调试模式,默认为 `false`。 46 | 47 | parallel 48 | : 禁止并发执行,默认为 `false`。 49 | 50 | force 51 | : 如果制品存在,强制执行构建并删除之前的制品。 52 | 53 | readable 54 | : Machine-readable 输出,默认为 `false`。 55 | 56 | ## 更多用法 57 | 58 | 更多用法参考:[appleboy/drone-packer](https://github.com/appleboy/drone-packer)。 59 | -------------------------------------------------------------------------------- /plugins/rancher/rancher/README.md: -------------------------------------------------------------------------------- 1 | # Rancher 2 | 3 | 在 Rancher 1.x 部署或者更新项目。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: publish 12 | image: pelotech/drone-rancher 13 | settings: 14 | url: http://awesomehost:awesomeport 15 | access_key: superaccesskey 16 | secret_key: supersecretkey 17 | service: huh/service1 18 | docker_image: huh/hello 19 | ``` 20 | 21 | ## 参数含义 22 | 23 | url 24 | : rancher server 主机地址。 25 | 26 | access_key 27 | : rancher 环境访问密钥。 28 | 29 | secret_key 30 | : rancher 环境密钥。 31 | 32 | service 33 | : 环境要升级的 rancher service。 34 | 35 | start_first 36 | : 在停止旧容器之前启动新容器,默认为 `true`。 37 | 38 | confirm 39 | : 服务升级成功后自动确认,默认为 `false`。 40 | 41 | timeout 42 | : 服务升级的最大等待时间,以秒为单位,默认为 30。 43 | 44 | docker_image 45 | : 用于升级环境的 docker 镜像。 46 | 47 | interval_millis 48 | : 容器升级之间的间隔(以毫秒为单位)。 49 | 50 | batch_size 51 | : 服务升级的粒度大小。 52 | 53 | ## 更多用法 54 | 55 | 更多用法参考:[josmo/drone-rancher](https://github.com/josmo/drone-rancher)。 56 | -------------------------------------------------------------------------------- /plugins/diagnostics/diagnostics/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /plugins/webhook/webhook/README.md: -------------------------------------------------------------------------------- 1 | # Webhook 2 | 3 | 通过 webhook 发送构建状态通知。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: send 12 | image: plugins/webhook 13 | settings: 14 | username: myusername 15 | password: mypassword 16 | urls: https://your.webhook/... 17 | content_type: application/json 18 | template: | 19 | { 20 | "owner": "{{ repo.owner }}", 21 | "repo": "{{ repo.name }}", 22 | "status": "{{ build.status }}", 23 | } 24 | ``` 25 | 26 | ## 参数含义 27 | 28 | urls 29 | : 要发送的地址列表。 30 | 31 | username 32 | : basic auth 用户名。 33 | 34 | password 35 | : basic auth 密码。 36 | 37 | method 38 | : HTTP 请求方式,默认 POST。 39 | 40 | content_type 41 | : 内容类型,默认为 application/json。 42 | 43 | template 44 | : webhook自定义模版。 45 | 46 | headers 47 | : 自定义header映射。 48 | 49 | skip_verify 50 | : 跳过SSL verification。 51 | 52 | debug 53 | : 启用调试信息。 54 | 55 | ## 更多用法 56 | 57 | 更多用法参考:[drone-plugins/drone-webhook](https://github.com/drone-plugins/drone-webhook)。 58 | -------------------------------------------------------------------------------- /plugins/terraform/terraform/README.md: -------------------------------------------------------------------------------- 1 | # Terraform 2 | 3 | 执行 Terraform `plan` 和 `apply`。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: terraform 12 | image: jmccann/drone-terraform:1 13 | settings: 14 | plan: false 15 | targets: 16 | - aws_security_group.generic_sg 17 | - aws_security_group.app_sg 18 | ``` 19 | 20 | ## 参数含义 21 | 22 | plan 23 | : 如果为`true`,则生成一个 plan,但是不应用。 24 | 25 | remote 26 | : 包含 Terraform 远程状态跟踪的配置。 27 | 28 | remote.backend 29 | : 要使用的 Terraform 远程状态后端。 30 | 31 | remote.config 32 | : 远程状态后端的配置参数映射。 33 | 34 | vars 35 | : 要传递给 Terraform `plan` 和 `apply` 命令的变量映射。 36 | 37 | secrets 38 | : 要传递给 Terraform `plan` 和 `apply` 命令的变量映射。 39 | 40 | ca_cert 41 | : 添加到环境中的 ca_cert。 42 | 43 | sensitive 44 | : 是否将 Terraform 命令输出,默认为`false`。 45 | 46 | role_arn_to_assume 47 | : 在运行 terraform 命令之前设定的角色。 48 | 49 | root_dir 50 | : Terraform 文件所在的根目录。 51 | 52 | parallelism 53 | : Terraform 并发数。 54 | 55 | ## 更多用法 56 | 57 | 更多用法参考:[jmccann/drone-terraform](https://github.com/jmccann/drone-terraform)。 58 | -------------------------------------------------------------------------------- /plugins/helm/helm/README.md: -------------------------------------------------------------------------------- 1 | # Helm 2 | 3 | 部署 Helm chart 的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: helm_deploy 12 | image: fpedrazas/drone-helm 13 | settings: 14 | skip_tls_verify: true 15 | chart: ./charts/my-chart 16 | release: ${DRONE_BRANCH} 17 | values: secret.password=${SECRET_PASSWORD},image.tag=${TAG} 18 | prefix: STAGING 19 | namespace: development 20 | 21 | ``` 22 | 23 | ## 参数 24 | 25 | namespace 26 | : 要安装 chart 的 namespace。 27 | 28 | chart 29 | : 要安装的chart 30 | 31 | release 32 | : helm 命令中用于指定 release 的名称。 33 | 34 | values 35 | : 在 helm 命令中要注入的values,注入的值会被覆盖。 36 | 37 | prefix 38 | : 定义插件中使用的所有的secret前缀。 39 | 40 | tiller_ns 41 | : 安装 `tiller` 的 namespace。 42 | 43 | debug 44 | : 非常详细的输出。 45 | 46 | skip_tls_verify 47 | : 如果创建自己的 SSL 证书,需要此标志为真,以避免出现连接问题。 48 | 49 | api_server 50 | : kubernetes api server。 51 | 52 | kubernetes_token 53 | : 用于连接api server 的 kubernetes token。 54 | 55 | ## 更多用法 56 | 57 | 更多用法参考:[ipedrazas/drone-helm](https://github.com/ipedrazas/drone-helm)。 58 | -------------------------------------------------------------------------------- /plugins/clair/clair/README.md: -------------------------------------------------------------------------------- 1 | # Clair 2 | 3 | 通过 Clair 扫描 docker 镜像插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: clair 12 | image: jmccann/drone-clair:1 13 | env: 14 | DOCKER_USERNAME: xxxxx 15 | DOCKER_PASSWORD: xxxxx 16 | CLAIR_URL: xxxxx 17 | CLAIR_CA_CERT: xxxxx 18 | settings: xxxxx 19 | url: http://clair.company.com 20 | username: johndoe 21 | password: mysecret 22 | scan_image: python:2.7 23 | ``` 24 | 25 | ### 环境变量 26 | 27 | DOCKER_USERNAME 28 | : 通过环境变量传递 `username`。 29 | 30 | DOCKER_PASSWORD 31 | : 通过环境变量传递 `password`。 32 | 33 | CLAIR_URL 34 | : 通过环境变量传递 `url`。 35 | 36 | CLAIR_CA_CERT 37 | : 通过环境变量传递 `ca_cert`。 38 | 39 | ### 参数 40 | 41 | * url:Clair 服务器 URL。 42 | 43 | * username:Docker Registry用户名,用于下载 `scan_image`。 44 | 45 | * password:Docker Registry密码,用于下载 `scan_image`。 46 | 47 | * scan_image:要扫描的 docker 镜像。支持 Docker Hub 或私有仓库。 48 | 49 | * ca_cert:用于验证 https 的 CA 证书。 50 | 51 | ## 更多用法 52 | 53 | 更多用法参考:[jmccann/drone-clair](https://github.com/jmccann/drone-clair)。 54 | -------------------------------------------------------------------------------- /plugins/sonar-qube/sonar-qube/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 12 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /plugins/ssh/ssh/README.md: -------------------------------------------------------------------------------- 1 | # SSH 2 | 3 | 通过 ssh 在远端 host 执行命令。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: ssh 12 | image: appleboy/drone-ssh 13 | settings: 14 | host: 15 | - example1.com 16 | - example2.com 17 | username: ubuntu 18 | password: yourpassword 19 | port: 22 20 | command_timeout: 2m 21 | script: 22 | - echo "Hello World" 23 | ``` 24 | 25 | ## 参数含义 26 | 27 | host 28 | : 目标主机名或 IP。 29 | 30 | port 31 | : 目标主机 ssh 端口。 32 | 33 | username 34 | : 目标主机用户账户。 35 | 36 | password 37 | : 目标主机用户密码。 38 | 39 | key 40 | : 用户私钥明文。 41 | 42 | key_path 43 | : 用户私钥路径。 44 | 45 | envs 46 | : 在脚本部分提供的自定义 secrets。 47 | 48 | script 49 | : 在远端执行命令。 50 | 51 | script_stop 52 | : 第一次失败后停止脚本。 53 | 54 | timeout 55 | : ssh连接建立超时时间。 56 | 57 | command_timeout 58 | :命令执行超时时间。 59 | 60 | proxy_host 61 | : 代理主机名或IP。 62 | 63 | proxy_port 64 | : 代理主机ssh端口。 65 | 66 | proxy_username 67 | : 代理主机用户账户。 68 | 69 | proxy_password 70 | : 代理主机用户密码。 71 | 72 | proxy_key 73 | : 代理私钥明文。 74 | 75 | proxy_key_path 76 | : 代理私钥路径。 77 | 78 | ## 更多用法 79 | 80 | 更多用法参考:[appleboy/drone-ssh](https://github.com/appleboy/drone-ssh)。 81 | -------------------------------------------------------------------------------- /plugins/ansible/ansible/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # plugins for Coding-CI 2 | 3 | ## Contributing 4 | 5 | Q: 我有一个好插件,希望大家都可以用上,应该如何贡献到镜像插件市场中? 6 | 7 | A: 恭喜你,找对地方了,这篇文章就是解释这个问题的! 8 | 9 | ## Step by step 10 | 11 | ### 前提 12 | 13 | 1. 已经制作好了插件。 14 | 1. 有 Git 操作的相关经验。 15 | 16 | ### Step 0 17 | 18 | fork 本项目,在 `plugins` 目录下创建插件子目录,比如 `plugins/example/plugin` 19 | 20 | ### Step 1 21 | 22 | 添加插件的 Meta 信息`plugin-meta.json` 到子目录中,字段如下: 23 | 24 | ```json 25 | { 26 | "name": "npm", 27 | "description": "发布 NPM 包到仓库,支持官方仓库和私有仓库", 28 | "tags": [ "publish", "npm" ], 29 | "mark": "社区", 30 | "images": "https://hub.docker.com/r/plugins/npm/tags", 31 | "source": "https://github.com/drone-plugins/drone-npm", 32 | "bugs": "https://github.com/drone-plugins/drone-npm/issues", 33 | "logo": "logo.svg" 34 | } 35 | ``` 36 | 37 | - `name`: 插件名称,需要全英文,单词之间以中划线`-`分隔。 38 | - `description`: 插件描述,简单介绍插件作用。 39 | - `tags`: 标签,是一个字符串数组,填写前可以先参照已有的标签填写,若没有合适的,可以自创。 40 | - `mark`: 角标。目前只可填 `官方`、`社区` 两种。 41 | - `images`: 插件镜像地址。 42 | - `source`: 源码地址。 43 | - `bugs`: 问题反馈地址。 44 | - `logo`: logo 图片相对地址。如果没有,可以不填。图片最好为正方形,尺寸大于 100 x 100 即可。 45 | 46 | ### Step 2 47 | 48 | 添加 logo README.md 等必要文件到插件 Meta 信息所在目录。 49 | 50 | ### Step 3 51 | 52 | 提交修改,发起 PR 等待自动检查工具通过和人工审核。 53 | -------------------------------------------------------------------------------- /plugins/wechat/wechat/README.md: -------------------------------------------------------------------------------- 1 | # wechat 2 | 3 | 微信发消息插件。 4 | 5 | ## 在 云原生构建I 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: send wecat notifications 12 | image: lizheming/drone-wechat 13 | settings: 14 | corpid: wechat_corpid 15 | corp_secret: wechat_corp_secret 16 | agent_id: agent_id 17 | to_user: 111 18 | to_party: 112 19 | to_tag: ${CODING_REPO_NAME} 20 | msg_url: ${CODING_BUILD_WEB_URL} 21 | safe: 1 22 | btn_txt: more 23 | title: ${CODING_REPO_NAME} 24 | message: > 25 | succeeded. Good job. 26 | ``` 27 | 28 | ## 参数含义 29 | 30 | - `corpid`: 企业Id。 31 | - `corp_secret`: 管理组的凭证密钥。 32 | - `agent_id`: 企业应用的id,整型。可在应用的设置页面查看。 33 | - `to_party`: 部门ID列表,多个接收者用‘|’分隔,最多支持100个。 34 | - `to_user`: 成员ID列表(消息接收者,多个接收者用‘|’分隔,最多支持1000个)。特殊情况:指定为@all,则向该企业应用的全部成员发送。 35 | - `to_tag`: 标签ID列表,多个接收者用‘|’分隔,最多支持100个。当touser为@all时忽略本参数。 36 | - `safe`: 表示是否是保密消息,0表示否,1表示是,默认0。 37 | - `msg_url`: 点击后跳转的链接。 38 | - `btn_text`: 按钮文字。 默认为“详情”, 不超过4个文字,超过自动截断。 39 | - `title`: 消息卡片标题。 40 | - `message`: 消息卡片正文,支持 Markdown。 41 | 42 | ## 更多用法 43 | 44 | 更多用法参考:[lizheming/drone-wechat](https://github.com/lizheming/drone-wechat)。 45 | 46 | 注意:该插件由提供的 message 模板变量,在 Coding-CI 不可用。 47 | -------------------------------------------------------------------------------- /plugins/markdown/markdownlint-cli2/README.md: -------------------------------------------------------------------------------- 1 | # markdownlint-cli2 2 | 3 | linting Markdown files with the markdownlint。 4 | 5 | ## 在 Docker 上使用 6 | 7 | ```shell 8 | docker run -w /myfolder -v $(pwd):/myfolder davidanson/markdownlint-cli2 docs/**/*.md 9 | 10 | docker run -w /myfolder -v $(pwd):/myfolder davidanson/markdownlint-cli2 --fix docs/**/*.md 11 | ``` 12 | 13 | 尝试自动修复检查过程中发现的问题 14 | 15 | ```shell 16 | docker run --rm -it -v $(pwd):$(pwd) -w $(pwd) \ 17 | --entrypoint="markdownlint-cli2-fix" \ 18 | davidanson/markdownlint-cli2 "**/*.md" "#node_modules" 19 | ``` 20 | 21 | ## 在 云原生构建 上使用 22 | 23 | ```yaml 24 | # .cnb.yml 25 | main: 26 | pull_request: 27 | - stages: 28 | - name: do markdownlint 29 | image: davidanson/markdownlint-cli2 30 | commands: 31 | - markdownlint-cli2 **/*.md 32 | ``` 33 | 34 | ## 在 Coding-CI 上使用 35 | 36 | ```yaml 37 | # .coding-ci.yml 38 | master: 39 | merge_request: 40 | - stages: 41 | - name: do markdownlint 42 | image: davidanson/markdownlint-cli2 43 | commands: 44 | - markdownlint-cli2 **/*.md 45 | ``` 46 | 47 | ## 排除指定目录 48 | 49 | ```yaml 50 | stages: 51 | - name: do markdownlint 52 | image: davidanson/markdownlint-cli2 53 | commands: 54 | - markdownlint-cli2 "**/*.md" "#node_modules" 55 | ``` 56 | -------------------------------------------------------------------------------- /plugins/sftp-cache/sftp-cache/README.md: -------------------------------------------------------------------------------- 1 | # SFTP Cache 2 | 3 | 使用 rsync 将制品缓存到中央服务器。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: restore_cache 12 | image: appleboy/drone-sftp-cache 13 | settings: 14 | server: example.com 15 | port: 22 16 | username: test 17 | password: test 18 | path: /var/cache/drone 19 | restore: true 20 | mount: 21 | - node_modules 22 | - name: build 23 | image: node:latest 24 | commands: 25 | - npm install 26 | - name: rebuild_cache 27 | image: appleboy/drone-sftp-cache 28 | settings: 29 | server: example.com 30 | port: 22 31 | username: test 32 | password: test 33 | path: /var/cache/drone 34 | rebuild: true 35 | mount: 36 | - node_modules 37 | ``` 38 | 39 | ## 参数含义 40 | 41 | server 42 | : 目标主机名或 IP。 43 | 44 | port 45 | : 目标主机 ssh 端口。 46 | 47 | username 48 | : 目标主机用户账户。 49 | 50 | password 51 | : 目标主机用户密码。 52 | 53 | key 54 | : 用户私钥明文。 55 | 56 | rebuild 57 | : 触发重复构建的布尔值。 58 | 59 | restore 60 | : 触发 restore 的布尔值。 61 | 62 | ignore_branch 63 | : 忽略 commit 分支名的布尔值。 64 | 65 | ## 更多用法 66 | 67 | 更多用法参考:[appleboy/drone-sftp-cache](https://github.com/appleboy/drone-sftp-cache)。 68 | -------------------------------------------------------------------------------- /.github/workflows/after-receive-pr.yml: -------------------------------------------------------------------------------- 1 | name: After receive PR 2 | 3 | # access to secrets 4 | on: 5 | workflow_run: 6 | workflows: ["Receive PR"] 7 | types: 8 | - completed 9 | 10 | jobs: 11 | notify: 12 | runs-on: ubuntu-latest 13 | if: > 14 | github.event.workflow_run.event == 'pull_request' && 15 | github.event.workflow_run.conclusion == 'success' 16 | steps: 17 | - name: Download workflow artifact 18 | uses: dawidd6/action-download-artifact@v2.11.0 19 | with: 20 | github_token: ${{ secrets.GITHUB_TOKEN }} 21 | workflow: receive-pr.yml 22 | run_id: ${{ github.event.workflow_run.id }} 23 | - name: Read the pr_num file 24 | id: pr_num_reader 25 | uses: juliangruber/read-file-action@v1.0.0 26 | with: 27 | path: ./pr_num/pr_num.txt 28 | - name: Set pr link 29 | id: pr_link_generator 30 | run: echo "LINK=https://github.com/${{ github.repository }}/pull/${{ steps.pr_num_reader.outputs.content }}" >> $GITHUB_OUTPUT 31 | 32 | - name: notify 33 | uses: docker://tencentcom/wecom-message:latest 34 | env: 35 | PLUGIN_ROBOT: ${{ secrets.WEWORK_BOT }} 36 | PLUGIN_CONTENT: | 37 | [${{ steps.pr_link_generator.outputs.LINK }}](${{ steps.pr_link_generator.outputs.LINK }}) 38 | 走查代码啦~ for ${{ github.actor }} 39 | -------------------------------------------------------------------------------- /plugins/upx/upx/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Created by potrace 1.16, written by Peter Selinger 2001-2019 6 | 7 | 8 | 12 | 16 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /plugins/scp/scp/README.md: -------------------------------------------------------------------------------- 1 | # SCP 2 | 3 | 通过 ssh 复制文件或者代码。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: scp files 12 | image: appleboy/drone-scp 13 | settings: 14 | host: example.com 15 | username: foo 16 | password: bar 17 | port: 22 18 | target: /var/www/deploy/${CODING_REPO_SLUG} 19 | source: release.tar.gz 20 | ``` 21 | 22 | ## 参数含义 23 | 24 | host 25 | : 目标主机名或 IP。 26 | 27 | port 28 | : 目标主机的 ssh 端口。 29 | 30 | username 31 | : 目标主机用户的帐户。 32 | 33 | password 34 | : 目标主机用户的密码。 35 | 36 | key 37 | : 用户私钥明文。 38 | 39 | passphrase 40 | : 用于加密私钥。 41 | 42 | target 43 | : 目标主机的文件夹路径。 44 | 45 | source 46 | : 要复制的源列表。 47 | 48 | rm 49 | : 在复制文件和制品前删除目标文件夹。 50 | 51 | timeout 52 | : ssh连接建立的超时时间。 53 | 54 | command_timeout 55 | : 执行命令的超时时间。 56 | 57 | strip_components 58 | : 删除指定数量的路径前缀。 59 | 60 | tar_tmp_path 61 | : 目标主机上 tar 文件的临时路径。 62 | 63 | tar_exec 64 | : 在目标主机上替代 tar 可执行文件。 65 | 66 | overwrite 67 | : 为tar文件增加 `--overwrite` flag。 68 | 69 | proxy_host 70 | : 代理主机名或IP。 71 | 72 | proxy_port 73 | : 代理主机 ssh 端口。 74 | 75 | proxy_username 76 | : 代理主机用户账户。 77 | 78 | proxy_password 79 | : 代理主机用户密码。 80 | 81 | proxy_key 82 | : 代理私钥明文。 83 | 84 | proxy_key_path 85 | : 代理私钥路径。 86 | 87 | proxy_passphrase 88 | : 用于加密私钥。 89 | 90 | ## 更多用法 91 | 92 | 更多用法参考:[appleboy/drone-scp](https://github.com/appleboy/drone-scp)。 93 | -------------------------------------------------------------------------------- /plugins/manifest/manifest/README.md: -------------------------------------------------------------------------------- 1 | # Manifest 2 | 3 | 推送 Docker manifest 多系统架构镜像文件的插件。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: manifest 12 | image: plugins/manifest 13 | settings: 14 | username: your-registry-usernname 15 | password: your-registry-password 16 | target: foo/bar:v1.0.0 17 | template: foo/bar:v1.0.0-OS-ARCH 18 | platforms: 19 | - linux/amd64 20 | - linux/arm64 21 | 22 | ``` 23 | 24 | 通过上面的配置,可以在 DockerHub 给 `foo/bar` 打上 `v1.0.0` 标签,并且 `v1.0.0` 跟 DockerHub 上这两个标签的镜像关联: 25 | 26 | - foo/bar:v1.0.0-linux-amd64 27 | - foo/bar:v1.0.0-linux-arm64 28 | 29 | 执行 `docker pull foo/bar:v1.0.0` 时会基于运行环境的系统架构,拉取对应的镜像。 30 | 31 | ## 参数含义 32 | 33 | username 34 | : 注册表(例如 DockerHub)认证用户名(匿名访问跳过) 35 | 36 | password 37 | : 注册表认证密码(匿名访问跳过) 38 | 39 | insecure 40 | : 启用不安全(非 TLS)注册表支持 41 | 42 | platforms 43 | : 格式为 OS/ARCH 的系统架构列表,它会基于 `template` 模板生成 `target` 要关联的镜像列表 44 | 45 | target 46 | : manifest 目标镜像 47 | 48 | template 49 | : 关联镜像的名称模板,模板中的 OS 和 ARCH 字符串会被替换成具体系统和架构 50 | 51 | ignore_missing 52 | : 忽略丢失的源镜像 53 | 54 | ## 原理 55 | 56 | 使用 [manifest-tool](https://github.com/estesp/manifest-tool) 57 | 修改镜像的 [docker manifest](https://docs.docker.com/engine/reference/commandline/manifest/), 58 | docker 拉取镜像时,就可以根据 manifest 内容拉取运行环境对应架构的镜像。 59 | 60 | ## 更多用法 61 | 62 | 更多用法参考:[drone-plugins/drone-manifest](https://github.com/drone-plugins/drone-manifest) 63 | 64 | 注意:该插件由 drone 提供,它提供的 `spec` 参数用法,只适用于 drone 环境。 65 | -------------------------------------------------------------------------------- /plugins/snyk/snyk/README.md: -------------------------------------------------------------------------------- 1 | # Snyk 2 | 3 | 使用 snyk 扫描容器镜像漏洞。 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: scan 12 | image: drone-plugins/drone-snyk 13 | # https://xxx/secret.yaml中存放变量snyk token: $SNYKTOKEN 14 | imports: https://xxx/secret.yaml 15 | settings: 16 | dockerfile: link to dockerfile in repo 17 | image: image name 18 | snyk: $SNYKTOKEN 19 | fail_on_issues: false 20 | ``` 21 | 22 | ## 参数含义 23 | 24 | ```text 25 | REGISTRY // docker registry address 26 | USERNAME // Docker registry username 27 | PASSWORD // Docker registry password 28 | EMAIL // Docker registry email 29 | CONFIG // Docker Auth Config 30 | MIRROR // Docker registry mirror 31 | INSECURE // Docker daemon enable insecure registries 32 | STORAGE_DRIVER // Docker daemon storage driver 33 | STORAGE_PATH // Docker daemon storage path 34 | DAEMON_OFF // Docker daemon is disabled (already running) 35 | DEBUG // Docker daemon started in debug mode 36 | BIP // Docker daemon network bridge IP address 37 | CUSTOM_DNS // Docker daemon dns server 38 | CUSTOM_DNS_SEARCH // Docker daemon dns search domain 39 | MTU // Docker daemon mtu setting 40 | IPV6 // Docker daemon IPv6 networking 41 | EXPERIMENTAL // Docker daemon enable experimental mode 42 | ``` 43 | 44 | ## 更多用法 45 | 46 | 更多用法参考:[drone-plugins/drone-snyk](https://github.com/drone-plugins/drone-snyk)。 47 | -------------------------------------------------------------------------------- /plugins/wechat-for-work/wechat-for-work/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/k8s/kubectl/README.md: -------------------------------------------------------------------------------- 1 | # kubectl 2 | 3 | Kubectl 是 Kubernetes 命令行接口。通过 Kubectl 命令可以方便的管理 Kubernetes 集群。 4 | 5 | Kubectl 同样可以管理腾讯云 tke 集群。 6 | 7 | ## 在 云原生构建 上使用 8 | 9 | ```yml 10 | main: 11 | push: 12 | - stages: 13 | - name: 使用 kubectl 操作腾讯 TKE 更新指定pod的镜像版本 14 | # 可参考导入帮助手册环境变量相关 15 | imports: https://xxx/kube-config.yml 16 | image: bitnami/kubectl 17 | commands: | 18 | echo "$KUBECF" > ~/.kube/config 19 | kubectl set image $POD_TYPE/$POD $CONTAINER=$IMAGE:$TAG -n $NS 20 | ``` 21 | 22 | ## 参数含义 23 | 24 | - `$POD` - pod 的名字 25 | - `$POD_TYPE` - pod 类型,常见如 `Deployment\StatefulSet` 等 26 | - `$CONTAINER` - pod 中容器的名字 27 | - `$IMAGE` - 期望部署的 docker 镜像名 28 | - `$IMAGE_TAG` - 是镜像标签 29 | 30 | ## kube-config 31 | 32 | ```yml 33 | KUBECF: | 34 | apiVersion: v1 35 | clusters: 36 | - cluster: 37 | certificate-authority-data: xxx 38 | server: 'https://123.207.112.200:443/' 39 | name: cls-xxx 40 | contexts: 41 | - context: 42 | cluster: cls-1m6x0bbo 43 | user: '1000141405xx' 44 | name: cls-1m6x0bbo-100014140531-context-default 45 | current-context: cls-1m6x0bbo-100014140531-context-default 46 | kind: Config 47 | preferences: {} 48 | users: 49 | - name: '1000141405xx' 50 | user: 51 | client-certificate-data: xxx 52 | client-key-data: xxx 53 | ``` 54 | 55 | `kube-config` 的具体内容,可以从腾讯云控制台,集群「基本信息」中的「集群 APIServer 信息」中获取。 56 | 57 | ## 更多用法 58 | 59 | 更多用法参考: 60 | 61 | - [kubernetes/kubectl](https://github.com/kubernetes/kubectl) 62 | - [kubectl文档](https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands) 63 | - [bitnami/kubectl文档](https://github.com/bitnami/containers/tree/main/bitnami/kubectl) 64 | - [entrypoint](https://yeasy.gitbook.io/docker_practice/image/dockerfile/entrypoint) 65 | -------------------------------------------------------------------------------- /plugins/scp/scp/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/ssh/ssh/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/sftp-cache/sftp-cache/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /plugins/download/download/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 29 | 30 | 31 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /plugins/ftps/ftps/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | FTPS 44 | 45 | -------------------------------------------------------------------------------- /plugins/ansible/ansible/README.md: -------------------------------------------------------------------------------- 1 | # Ansible 2 | 3 | Ansible 可以向指定的IP执行任务,完成对 VM 集群的的自动化管理。 4 | 5 | ## 在 Docker 上使用 6 | 7 | ```shell 8 | docker run --rm \ 9 | -e PLUGIN_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" \ 10 | -e PLUGIN_PLAYBOOK="deployment/playbook.yml" \ 11 | -e PLUGIN_INVENTORY="deployment/hosts.yml" \ 12 | -v $(pwd):$(pwd) \ 13 | -w $(pwd) \ 14 | plugins/ansible 15 | ``` 16 | 17 | ## 在 云原生构建 上使用 18 | 19 | ```yml 20 | main: 21 | push: 22 | - stages: 23 | - name: use ansible 24 | image: plugins/ansible 25 | settings: 26 | private_key: $PRIVATE_KEY 27 | inventory: hosts.conf 28 | playbook: playbook.yml 29 | ``` 30 | 31 | ```conf 32 | # hosts.conf 33 | [custom] 34 | 127.0.0.1 35 | 127.0.0.2 36 | 127.0.0.3 37 | ``` 38 | 39 | ```yml 40 | # playbook.yml 41 | --- 42 | - hosts: 43 | - custom 44 | remote_user: root 45 | vars: 46 | ansible_ssh_port: 36000 47 | tasks: 48 | 49 | # 执行脚本 50 | - name: hello 51 | shell: echo hello 52 | 53 | # 复制文件 54 | - name: copy 55 | copy: 56 | src: /dir/from/ 57 | dest: /dir/to/ 58 | owner: root 59 | group: root 60 | mode: 0644 61 | ``` 62 | 63 | ## 常见问题 64 | 65 | ### SSH-KEY 生成 66 | 67 | 使用 椭圆曲线(推荐) 算法生成密钥对 68 | 69 | ```shell 70 | ssh-keygen -t ed25519 -f ./ssh-key 71 | ``` 72 | 73 | 公钥内容追加到目标机器的 `/root/.ssh/authorized_keys` 文件中 74 | 75 | ### RSA 加密算法提示不支持时 76 | 77 | 因为最新版本的 openssl 已弱化对 `RSA` 的支持,遇到不支持的情况时,可降级为 3.0 版本解决, 78 | 79 | 即:`plugins/ansible:3`,示例如下 80 | 81 | ```yml 82 | main: 83 | push: 84 | - stages: 85 | - name: use ansible 86 | image: plugins/ansible:3 87 | settings: 88 | private_key: $PRIVATE_KEY 89 | inventory: hosts.conf 90 | playbook: playbook.yml 91 | ``` 92 | 93 | ## 隐藏明文凭证 94 | 95 | 可通过 imports 动态注入凭证,达到隐藏明文凭证的目标 96 | 97 | ```yml 98 | main: 99 | push: 100 | - stages: 101 | - name: use ansible 102 | image: plugins/ansible 103 | imports: https://your-git.com/xxx/xxx/ssh-key.yml 104 | settings: 105 | private_key: $PRIVATE_KEY 106 | inventory: hosts.conf 107 | playbook: playbook.yml 108 | ``` 109 | 110 | ```yml 111 | # ssh-key.yml 112 | PRIVATE_KEY: | 113 | xxxxxx 114 | xxxxxx 115 | PUBLIC_KEY: | 116 | xxxxxx 117 | xxxxxx 118 | ``` 119 | 120 | ## 更多用法 121 | 122 | 参见 [ansible/ansible](https://github.com/ansible/ansible) 123 | -------------------------------------------------------------------------------- /plugins/helm3/helm3/README.md: -------------------------------------------------------------------------------- 1 | # Helm3 2 | 3 | Helm3 插件 4 | 5 | ## 在 云原生构建 上使用 6 | 7 | ```yml 8 | main: 9 | push: 10 | - stages: 11 | - name: deploy_production 12 | image: pelotech/drone-helm3 13 | # https://xxx/secret.yaml中存放变量KUBE_API_SERVER和KUBE_TOKEN 14 | imports: https://xxx/secret.yaml 15 | settings: 16 | helm_command: upgrade 17 | chart: ./ 18 | release: my-project 19 | api_server: $KUBE_API_SERVER 20 | kubernetes_token: $KUBE_TOKEN 21 | 22 | ``` 23 | 24 | ## 参数 25 | 26 | mode 27 | : 要运行的 Helm 命令;有效选项为`upgrade`、`lint` 和 `uninstall`。此设置在版本0.11.0之前称为“helm_command”。 28 | 29 | update_dependencies 30 | : 在运行主helm命令之前运行 `helm dependency update`。 31 | 32 | add_repos 33 | : 在运行主helm命令之前运行 `helm repo add`。此设置在版本0.11.0之前称为“helm_repos”。 34 | 35 | repo_certificate 36 | : chart 仓库的 Base64 编码TLS证书。 37 | 38 | repo_ca_certificate 39 | : chart 仓库证书颁发机构的 Base64 编码TLS证书。 40 | 41 | namespace 42 | : 安装/卸载的 Kubernetes namespace。 43 | 44 | debug 45 | : 生成 plugin 和 helm 自身的 debug 输出。 46 | 47 | chart 48 | : 部署安装用到的 chart。 49 | 50 | release 51 | : 安装/卸载的 Release 名称。 52 | 53 | values 54 | : Arguments for helm's `--set` flag。 55 | 56 | string_values 57 | :参数用于helm的`--set-string`标志。 58 | 59 | values_files: 60 | 参数用于helm的`--values`标志。 61 | 62 | kube_api_server 63 | :Kubernetes api服务器。此设置在版本0.11.0之前称为 `api_server`。 64 | 65 | kube_token 66 | :用于连接Kubernetes api的令牌。此设置在版本0.11.0之前称为 `kubernetes_token`。 67 | 68 | kube_service_account 69 | :用于连接Kubernetes api的帐户名称。此设置在版本0.11.0之前称为 `service_account`。 70 | 71 | kube_certificate 72 | :基于64位编码的TLS证书,用于使用自签名CA证书的集群。此设置在版本0.11.0之前称为 `kubernetes_certificate`。 73 | 74 | chart_version 75 | :要安装的特定chart版本。 76 | 77 | dry_run 78 | :准备安装/卸载,但不执行它。 79 | 80 | wait_for_upgrade 81 | :等待Kubernetes资源处于就绪状态。此设置在版本0.11.0之前称为 `wait`。 82 | 83 | timeout 84 | :任何单个Kubernetes操作的超时时间。 85 | 86 | force_upgrade 87 | :将 `--force` 传递给 `helm upgrade`。此设置在版本0.11.0之前称为 `force`。 88 | 89 | reuse_values 90 | :重用以前发布的值。 91 | 92 | keep_history 93 | :将 `--keep-history` 传递给 `helm uninstall`。 94 | 95 | lint_strictly 96 | :将 `--strict` 传递给 `helm lint`。 97 | 98 | atomic_upgrade 99 | :将 `--atomic` 传递给 `helm upgrade`。 100 | 101 | cleanup_failed_upgrade 102 | :将 `--cleanup-on-fail` 传递给 `helm upgrade`。 103 | 104 | skip_tls_verify 105 | :连接到Kubernetes api时不检查有效证书。 106 | 107 | ## 更多用法 108 | 109 | 更多用法参考:[pelotech/drone-helm3](https://github.com/pelotech/drone-helm3)。 110 | -------------------------------------------------------------------------------- /plugins/npm-auth/npm-auth/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /plugins/newrelic-deployment/newrelic-deployment/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NR_logo_Horizontal 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /plugins/rancher/rancher/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /plugins/packer/packer/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Asset 1 6 | 7 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /plugins/webhook/webhook/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | image/svg+xml 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /plugins/codecov/codecov/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /plugins/datadog/datadog/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | 8 | 41 | 42 | -------------------------------------------------------------------------------- /plugins/email/email/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /plugins/manifest/manifest/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 14 | 15 | 21 | 22 | 23 | 27 | 31 | 35 | 39 | 43 | 47 | 51 | 55 | 59 | 60 | 62 | 66 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /plugins/kaniko/kaniko/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /plugins/gpgsign/gpgsign/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 14 | 17 | 18 | 20 | 21 | 23 | 27 | 31 | 35 | 39 | 43 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /plugins/helm/helm/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Created by potrace 1.13, written by Peter Selinger 2001-2015 6 | 7 | 8 | 54 | 58 | 63 | 66 | 107 | 150 | 151 | 152 | -------------------------------------------------------------------------------- /plugins/helm3/helm3/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Created by potrace 1.13, written by Peter Selinger 2001-2015 6 | 7 | 8 | 54 | 58 | 63 | 66 | 107 | 150 | 151 | 152 | -------------------------------------------------------------------------------- /plugins/artifactory/artifactory/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | image/svg+xml -------------------------------------------------------------------------------- /plugins/snyk/snyk/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | avatar 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /plugins/grafana-annotation/grafana-annotation/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /plugins/pypi/pypi/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | --------------------------------------------------------------------------------