Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

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

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages