Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

NCUHOME/K8sSetImageAction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

25 Commits

Repository files navigation

K8sSetImageAction

通过 Rancher API 更新 Kubernetes Deployment/DaemonSet 镜像的 GitHub Action

特性

  • ✅ 轻量级 Shell 脚本实现
  • ✅ 支持所有 Rancher 管理的 K8s 集群
  • ✅ 支持 Deployment 和 DaemonSet
  • ✅ 自动重试(最多 5 次)
  • ✅ 可选等待部署完成

使用方法

- name: Update Deployment
 uses: NCUHOME/K8sSetImageAction@v1.0
 with:
 backend: "https://some.rancher.com"
 token: ${{ secrets.CATTLE_TOKEN }} # Rancher API Bearer Token
 namespace: "control"
 workload: "apicenter"
 image: "image.url:version"
 type: "daemonsets" # 可选, 默认 'deployments'
 container: "1" # 可选, 容器索引, 默认 0
 wait: "true" # 可选, 等待部署完全可用, 默认 false
 cluster: "local" # 可选, 集群名称, 默认 'local'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 94.1%
  • Dockerfile 5.9%

AltStyle によって変換されたページ (->オリジナル) /