用于DroneCI的Kuboard面板集成工具
Go to file
李寻欢 e9262e6c18
BuildImage / build-image (push) Successful in 48s Details
💚 优化Actions工作流配置
2023-10-25 11:00:59 +08:00
.gitea/workflows 💚 优化Actions工作流配置 2023-10-25 11:00:59 +08:00
.gitignore first commit 2023-10-17 16:32:38 +08:00
Dockerfile 💚 新增Actions工作流配置 2023-10-25 10:57:04 +08:00
go.mod first commit 2023-10-17 16:32:16 +08:00
go.sum first commit 2023-10-17 16:32:16 +08:00
main.go 🐛 Fix a bug. 2023-10-17 16:46:41 +08:00
readme.md 💚 新增Actions工作流配置 2023-10-25 10:57:04 +08:00
restart.go first commit 2023-10-17 16:32:16 +08:00
update.go first commit 2023-10-17 16:32:16 +08:00

readme.md

使用方式

kind: pipeline
type: docker
name: BuildContainerImage


steps:
  # 更新测试环境
  - name: UpdateTesting
    image: gitee.ltd/lxh/drone-kuboard
    settings:
      # 执行操作 restart | update
      action: restart
      # 固定句式
      kind: deployments
      # 集群名称
      cluster: test
      # 命名空间
      namespace: test-ns
      # deployments名称
      name: test-dep
      # 镜像如果是更新image和tag必须填不然报错
      image: xxxx
      # 新的Tag如果git事件是tag的话可以保持下面的不变具体视实际情况而定
      tag: ${DRONE_SEMVER_SHORT}
      # Kuboard服务地址
      kuboard_uri: https://kuboard.example.com/
      # Kuboard账号
      kuboard_username:
        from_secret: kuboard_username
      # Kuboard访问AccessKey
      kuboard_key:
        from_secret: kuboard_key
    when:
      status:
        - "success"