From 673a8eaa93444d83c5d6954026ef2e340f9a71fd Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Mon, 30 May 2022 15:25:33 -0700 Subject: [PATCH] Add kubectl rollout restart to force-update --- .drone.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.drone.yml b/.drone.yml index 1ce9fa9..c63f76d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -44,6 +44,13 @@ steps: - ./kubectl config set-context default --cluster=default --user=default - ./kubectl config use-context default - ./kubectl apply -f kubernetes-resources.yml + # This next line wouldn't be necessary if new tags were generated for each image + # (though then I'd have to dynamically plumb them into the yml file) + # TODO - research if there's a better way to do this. Note that this isn't done + # in the `honestbee` repo that I copied from - but I confirmed by `curl`-ing localhost + # that simply applying the yml leaves the definitions and the service's output + # unchanged, despite `imagePullPolicy: 'Always'` + - ./kubectl rollout restart deployment/blog-deployment environment: kubernetesServer: from_secret: k8s_server