use kubectl
This commit is contained in:
@ -1,14 +1,4 @@
|
||||
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:
|
||||
image: plugins/kaniko
|
||||
settings:
|
||||
@ -21,3 +11,13 @@ steps:
|
||||
from_secret: system_container_registry_password
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user