Update .drone.yml
This commit is contained in:
parent
25b1f1f748
commit
dafbdcbab4
@ -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: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user