research-notes/.woodpecker.yml
jordan 0666542d71
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix: use base64 encoding for kubeconfig secret
2026-02-10 12:26:44 -07:00

39 lines
926 B
YAML

# CI/CD Pipeline for research-notes
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1
steps:
build:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: research-notes/web
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: Dockerfile
cache: true
skip_tls_verify: true
when:
branch: main
event: push
deploy:
image: bitnami/kubectl:latest
environment:
KUBECONFIG_B64:
from_secret: kubeconfig
commands:
- mkdir -p ~/.kube
- 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:
branch: main
event: push