drone-kubernetes icon indicating copy to clipboard operation
drone-kubernetes copied to clipboard

Unexpected behaviour with tags

Open mikhail-manuilov opened this issue 6 years ago • 2 comments

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

mikhail-manuilov avatar Jul 09 '18 14:07 mikhail-manuilov

You can try the drone-kubectl plugin. https://github.com/hectorqin/drone-kubectl

hectorqin avatar Jul 26 '18 07:07 hectorqin

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

clayrisser avatar Sep 16 '18 08:09 clayrisser