stemedb/.woodpecker.yml
jordan 7895a68433
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci: fix Kaniko repo path and use external registry URL for deploys
2026-03-07 00:32:59 -07:00

32 lines
927 B
YAML

# StemeDB CI/CD Pipeline
# Push to main → Kaniko builds amd64 image → pushes to registry.threesix.ai → kubectl deploy
when:
branch: main
event: push
steps:
build:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: stemedb-api
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: Dockerfile
cache: true
cache_repo: stemedb-api/cache
skip_tls_verify: true
deploy:
image: bitnami/kubectl:latest
environment:
KUBECONFIG_DATA:
from_secret: kubeconfig
commands:
- mkdir -p /root/.kube && echo "$KUBECONFIG_DATA" | base64 -d > /root/.kube/config
- kubectl set image deployment/stemedb-api stemedb-api=registry.threesix.ai/stemedb-api:${CI_COMMIT_SHA:0:8} -n stemedb
- kubectl rollout status deployment/stemedb-api -n stemedb --timeout=300s
depends_on: [build]