use kubectl

This commit is contained in:
2023-11-17 15:43:53 +01:00
parent fc99d07737
commit a7c087b489

View File

@ -1,14 +1,4 @@
steps: steps:
mail:
image: deblan/woodpecker-email
settings:
from.address: woodpeckerci@hottis.de
from.name: Woodpecker-CI Pseudouser
host: smtp.system.svc.cluster.local
scan:
image: woodpeckerci/plugin-trivy
build: build:
image: plugins/kaniko image: plugins/kaniko
settings: settings:
@ -21,3 +11,13 @@ steps:
from_secret: system_container_registry_password from_secret: system_container_registry_password
dockerfile: Dockerfile dockerfile: Dockerfile
deploy:
image: portainer/kubectl-shell:latest
secrets:
- source: kube-config
target: KUBE_CONFIG_CONTENT
commands:
- printf "$KUBE_CONFIG_CONTENT" > ~/kube-config
- KUBECONFIG=~/kube-config
- kubectl get nodes