use kubectl, fix 3
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
2023-11-17 15:55:53 +01:00
parent 29061f2bb2
commit 150c498bfc

View File

@ -10,6 +10,8 @@ steps:
password:
from_secret: system_container_registry_password
dockerfile: Dockerfile
when:
- event: [push, tag]
deploy:
image: portainer/kubectl-shell:latest
@ -17,8 +19,8 @@ steps:
- source: kube_config
target: KUBE_CONFIG_CONTENT
commands:
- printf "$KUBE_CONFIG_CONTENT" > ~/kubeconfig
- KUBECONFIG=~/kubeconfig
- printf "$KUBE_CONFIG_CONTENT" > /tmp/kubeconfig
- KUBECONFIG=/tmp/kubeconfig
- kubectl get nodes
when:
- event: tag