NOTE: only can update image name
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}"
}
}]
api
workload api urlaccess_key
rancher user api keyssecret_key
rancher user api keysdata
api result's containers field, only supportname
image
andenvironment
field