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: {}