drone-kubernetes
drone-kubernetes copied to clipboard
Unexpected behaviour with tags
image: quay.io/honestbee/drone-kubernetes
___
tag:
- latest
- 1.13.4
Got in deployment:
___
containers:
- image: REPO:latest,1.13.4
___
Of course k8s told me it can't pull such tag
You can try the drone-kubectl plugin. https://github.com/hectorqin/drone-kubectl
I was reading through the script and I think there's an error in their documentation. The tag should be set to a string.
This is the actual line that runs the deployment.
Notice PLUGIN_TAG
would not make sense to be an array.
kubectl -n ${PLUGIN_NAMESPACE} set image deployment/${DEPLOY} \
${CONTAINER}=${PLUGIN_REPO}:${PLUGIN_TAG} --record