Skip to content

drone plugin for update rancher workload's docker image

Notifications You must be signed in to change notification settings

Kayuii/drone-plugin-rancher2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

drone-plugin-rancher2

NOTE: only can update image name

Usage

pipeline:
  update-rancher:
    image: ystyle/drone-plugin-rancher2
    api: https://rancher.youdomain.com/v3/project/c-27tt1:p-wqtk3/workloads/default:default:nginx
    access_key: token-dfi8s
    secret_key: mhgb9w2csrvs6h9nm4fldl4z8f7h4sznx4m6ggvv4p54sffhjlkwvx
    data: [{
      "name": "nginx",
      "image": "nginx:alpine",
      "environment": {
        "tag": "${DRONE_COMMIT_SHA:0:8}"
        }
      }]

Parameter Reference

  • api workload api url
  • access_key rancher user api keys
  • secret_key rancher user api keys
  • data api result's containers field, only support name image and environment field

About

drone plugin for update rancher workload's docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 93.0%
  • Dockerfile 7.0%