Use in-cluster ServiceAccount auth for deployments
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Scott Hatlen
2025-10-20 21:09:52 -07:00
parent de3953e89e
commit 5053a621c5

View File

@@ -23,13 +23,10 @@ steps:
- name: deploy
image: bitnami/kubectl:latest
backend_options:
kubernetes:
serviceAccountName: woodpecker-deploy
commands:
- mkdir -p ~/.kube
- printf '%s\n' "$KUBECONFIG_CONTENT" > ~/.kube/config
- chmod 600 ~/.kube/config
- kubectl apply -f k8s.yaml -n blog
- kubectl rollout restart deployment/blog-dep -n blog
- kubectl rollout status deployment/blog-dep -n blog
environment:
KUBECONFIG_CONTENT:
from_secret: kubeconfig