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

Ability to load tag from a file

Open max-zelinski opened this issue 7 years ago • 2 comments

I would be great if we can use a dynamically generated tag (for instance constructed from package.json version, date, and moon phase) in drone-kube. The tag can be constructed and saved to a file so drone-kube can use it. This functionality is already supported by drone-docker (it looks for .tag file).

max-zelinski avatar Jun 10 '17 20:06 max-zelinski

What are you using to deploy the other components? For example, I wanted to create an Ingress inside of this file as well, but attempting to do that, even in its own dedicated file, results in:

2018/07/09 14:11:52 Error decoding yaml file to jsonconverting (v1.Service).v1.ServiceSpec to (v1beta1.Deployment).v1beta1.DeploymentSpec: Replicas not present in src

jdemaris avatar Jul 09 '18 14:07 jdemaris

Yeah we would have to add that. It only does deployments right now. It could probably be modified to do that but not something I have time for now. Those other parts (service, ingress) were all static in my setup so the only thing that really changed was the deployment file with different versions of the container image.

On Jul 9, 2018, at 7:30 AM, Justin DeMaris [email protected] wrote:

What are you using to deploy the other components? For example, I wanted to create an Ingress inside of this file as well, but attempting to do that, even in its own dedicated file, results in:

2018/07/09 14:11:52 Error decoding yaml file to jsonconverting (v1.Service).v1.ServiceSpec to (v1beta1.Deployment).v1beta1.DeploymentSpec: Replicas not present in src — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

vallard avatar Jul 09 '18 15:07 vallard