npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vcicd-cli

v2.1.0

Published

cicd for kubernetes and jenkins

Downloads

156

Readme

vcicd-cli

# install
yarn global add vcicd-cli

cicd --help
----
Usage: cicd [options] [command]

Options:
  -V, --version    output the version number
  -h, --help       display help for command

Commands:
  app              为应用接入CI/CD流水线
  config           用户信息、CI/CD相关配置
  login [options]  用户登录: 初始化cicd命令行工具
  help [command]   display help for command

cicd app --help
----
Usage: cicd app [options] [command]

为应用接入CI/CD流水线

Options:
  -h, --help        display help for command

Commands:
  init [options]    🔥为应用配置CI流程, 请务必进入应用根目录,再执行此命令
  deploy [options]  🔥为应用配置CD流程, 请务必进入k8s-vela-config根目录(非master分支), 再执行此命令
  jenkins           🚫单独为应用创建Jenkins多分支流水线任务, 并添加Jenkins webhook到GitLab仓库
  hook [options]    🚫单独添加[Jenkins|GitLab机器人|CICD机器人]的webhook到GitLab仓库
  script [options]  🚫单独为应用生成CI脚本
  mr                🚀快速提交MergeRequest到k8s-vela-config仓库
  help [command]    display help for command

特别说明

  • 本项目CI流程适用场景:GitOps模式下Jenkins+Gitlab+Kubernetes搭建起来的CI环境
    • CI流程:提交代码->Gitlab通知->Jenkins打包构建镜像->钉钉群通知
  • 本项目CD流程适用场景:GitOps模式下Gitlab+Kubernetes+Kubevela搭建起来的CD环境
    • CD流程:根据项目需要修改生成的文件 -> 提交MergeRequest请求 -> 通知运维进行评审、部署

使用前,请在本地配置正确的环境变量

# 示例
# vi ~/.zshrc 
export GITLAB_URL="http://xxxx"
export GITLAB_PRIVATE_TOKEN="xxx"

# source ~/.zshrc

使用帮助

# 安装工具
brew install node
brew install yarn
yarn global add vcicd-cli
# 升级工具版本
yarn global add vcicd-cli
# 查看工具版本
cicd --version
# 登录CICD
cicd login
# 自动创建Jenkins任务、绑定Webhook、生成CI配置文件
# 进入项目根目录
cicd init
# 生成CD部署清单 (工具版本 >= 1.0.0)
# 进入k8s-vela-config根目录(非master分支)
cicd deploy

单独使用某项功能

# 自动创建Jenkins任务
# 进入项目根目录
cicd jenkins
# 为Gitlab项目绑定Webhook
# 进入项目根目录
cicd hook --gitlab --jenkins --cicd
# 生成CI配置文件
# 进入项目根目录
cicd script