feat-dev-e2e-test/.woodpecker.yml
jordan 0c1e9e602d
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add service component: api
2026-02-03 01:38:31 +00:00

49 lines
1.2 KiB
YAML

# CI/CD Pipeline for feat-dev-e2e-test
# 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 api service
# Add this step to your .woodpecker.yml
build-api:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: feat-dev-e2e-test/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/feat-dev-e2e-test-api api=registry.threesix.ai/feat-dev-e2e-test/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 feat-dev-e2e-test"
- kubectl get deployments -n projects -l app=feat-dev-e2e-test --no-headers || true
when:
branch: main
event: push