rdev/.woodpecker.yml
jordan 4a7fbe8faa
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix(ci): disable kaniko cache for claudebox to fix DIGEST_INVALID
Corrupt cache blobs in rdev/claudebox/cache cause DIGEST_INVALID on
push. Disable cache temporarily to force a clean build. Can re-enable
once a good image is pushed and the cache is rebuilt.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-09 20:21:22 -07:00

80 lines
2.2 KiB
YAML

# Woodpecker CI for rdev platform
# Builds and deploys rdev-api, rdev-worker, and rdev-claudebox
variables:
- &when_main
branch: main
event: push
steps:
# Run tests first
test:
image: golang:1.25-alpine
commands:
- apk add --no-cache git
- go test ./...
# Build rdev-api image
build-api:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: rdev/api
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: Dockerfile.api
cache: true
skip_tls_verify: true
when:
<<: *when_main
# Build rdev-worker image
build-worker:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: rdev/worker
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: Dockerfile.worker
cache: true
skip_tls_verify: true
when:
<<: *when_main
# Build rdev-claudebox image
build-claudebox:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: rdev/claudebox
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: Dockerfile
cache: false
skip_tls_verify: true
when:
<<: *when_main
# Deploy to k3s cluster
deploy:
image: bitnami/kubectl:latest
commands:
- echo "Deploying rdev-api..."
- kubectl set image deployment/rdev-api rdev-api=registry.threesix.ai/rdev/api:${CI_COMMIT_SHA:0:8} -n rdev
- kubectl rollout status deployment/rdev-api -n rdev --timeout=120s
- echo "Deploying rdev-worker..."
- kubectl set image deployment/rdev-worker worker=registry.threesix.ai/rdev/worker:${CI_COMMIT_SHA:0:8} claudebox=registry.threesix.ai/rdev/claudebox:${CI_COMMIT_SHA:0:8} -n rdev
- kubectl rollout status deployment/rdev-worker -n rdev --timeout=120s
- echo "Deploying claudebox statefulset..."
- kubectl set image statefulset/claudebox claudebox=registry.threesix.ai/rdev/claudebox:${CI_COMMIT_SHA:0:8} -n rdev
- kubectl rollout status statefulset/claudebox -n rdev --timeout=300s
when:
<<: *when_main