From dafbdcbab48dfd46da70eb551968e03200c9f625 Mon Sep 17 00:00:00 2001 From: eric Liu Date: Tue, 19 Sep 2023 01:23:21 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.drone.yml b/.drone.yml index 2e76780..709fd6a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -56,6 +56,15 @@ steps: author_email: "eric@ericxliu.me" ssh_key: from_secret: ssh_key +- name: k8s-delete-pod + image: alpine/git + environment: + TOKEN: + from_secret: token + APISERVER: + from_secret: api_server + commands: + - curl -X DELETE https://$APISERVER/api/v1/namespaces/hugo/pods/ --header "Authorization: Bearer $TOKEN" --insecure volumes: - name: output temp: {}