fix: configure kubectl with kubeconfig secret in CI
Add kubeconfig secret mounting for deploy step to authenticate with Kubernetes cluster. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ea0d775163
commit
652ea319a4
@ -25,7 +25,10 @@ steps:
|
|||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
|
secrets: [kubeconfig]
|
||||||
commands:
|
commands:
|
||||||
|
- mkdir -p ~/.kube
|
||||||
|
- echo "$KUBECONFIG" > ~/.kube/config
|
||||||
- kubectl set image deployment/research-notes web=registry.threesix.ai/research-notes/web:${CI_COMMIT_SHA:0:8} -n projects
|
- kubectl set image deployment/research-notes web=registry.threesix.ai/research-notes/web:${CI_COMMIT_SHA:0:8} -n projects
|
||||||
- kubectl rollout status deployment/research-notes -n projects --timeout=120s
|
- kubectl rollout status deployment/research-notes -n projects --timeout=120s
|
||||||
when:
|
when:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user