use kubectl
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user