drone-kuboard/readme.md
2023-10-17 16:37:29 +08:00

43 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### 手动打包镜像
```shell
docker build --push -t repo.lxh.io/lxh/drone-kuboard:latest .
```
### 使用方式
```yaml
kind: pipeline
type: docker
name: BuildContainerImage
steps:
# 更新测试环境
- name: UpdateTesting
image: repo.lxh.io/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"
```