Update .drone.yml

This commit is contained in:
Eric X. Liu 2023-09-19 01:23:21 +00:00
parent 25b1f1f748
commit dafbdcbab4

View File

@ -56,6 +56,15 @@ steps:
author_email: "eric@ericxliu.me" author_email: "eric@ericxliu.me"
ssh_key: ssh_key:
from_secret: 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: volumes:
- name: output - name: output
temp: {} temp: {}