Skip to content

ystyle/drone-plugin-rancher2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker Pulls

drone-plugin-rancher2

NOTE: only can update image name

Usage

rancher 2.6.3 or above

steps:
  - name: update-rancher
    image: ystyle/drone-plugin-rancher2:2.6
    when:
      branch: master
      event: [push]
    environment:
      SERVER: https://rancher.youdomain.com/k8s/clusters/c-m-w7b37mq1
      TOKEN: kubeconfig-user-d71qwk98dq:d45jfxrdx672r26xmf8ltsj46dcbw2p7lf76dck3vt5nr24gzlpbk9
    commands:
      - /setup.sh
      - kubectl set image deployment/${DRONE_REPO_NAME} ${DRONE_REPO_NAME}=registry.cn-hangzhou.aliyuncs.com/dexdev/${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}-${DRONE_BUILD_NUMBER}

The server and token environment are taken from the cluster - the server and token of kubectl config next to the search icon in the upper right corner

image

About

drone plugin for update rancher workload's docker image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published