fix: use base64 encoding for kubeconfig secret
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
6b44f2eded
commit
0666542d71
@ -26,11 +26,11 @@ steps:
|
||||
deploy:
|
||||
image: bitnami/kubectl:latest
|
||||
environment:
|
||||
KUBECONFIG_DATA:
|
||||
KUBECONFIG_B64:
|
||||
from_secret: kubeconfig
|
||||
commands:
|
||||
- mkdir -p ~/.kube
|
||||
- echo "$KUBECONFIG_DATA" > ~/.kube/config
|
||||
- echo "$KUBECONFIG_B64" | base64 -d > ~/.kube/config
|
||||
- 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
|
||||
when:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user