composed5/.woodpecker.yml
jordan 394c16e645
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add app-react component: web
2026-02-01 19:58:19 +00:00

76 lines
1.9 KiB
YAML

# CI/CD Pipeline for composed5
# Components will add their build steps below the marker
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1
steps:
# COMPONENT_STEPS_BELOW
# Woodpecker CI step for web React app
# Add this step to your .woodpecker.yml
build-web:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: composed5/web
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: apps/web/Dockerfile
cache: true
skip-tls-verify: true
when:
branch: main
event: push
deploy-web:
image: bitnami/kubectl:latest
commands:
- kubectl set image deployment/composed5-web web=registry.threesix.ai/composed5/web:${CI_COMMIT_SHA:0:8} -n projects || echo "Deployment not found, skipping"
when:
branch: main
event: push
# Woodpecker CI step for api service
# Add this step to your .woodpecker.yml
build-api:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: composed5/api
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: services/api/Dockerfile
cache: true
skip-tls-verify: true
when:
branch: main
event: push
deploy-api:
image: bitnami/kubectl:latest
commands:
- kubectl set image deployment/composed5-api api=registry.threesix.ai/composed5/api:${CI_COMMIT_SHA:0:8} -n projects || echo "Deployment not found, skipping"
when:
branch: main
event: push
# Do not remove the marker above - component steps are inserted here
verify:
image: bitnami/kubectl:latest
commands:
- echo "Pipeline complete for composed5"
- kubectl get deployments -n projects -l app=composed5 --no-headers || true
when:
branch: main
event: push