slack-q-1770281596/.woodpecker.yml
jordan 682b4198df
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add worker component: background-processor
2026-02-05 08:53:26 +00:00

102 lines
2.6 KiB
YAML

# CI/CD Pipeline for slack-q-1770281596
# Components will add their build steps below the marker
clone:
git:
image: woodpeckerci/plugin-git
settings:
depth: 1
steps:
deps:
image: golang:1.23
commands:
- go work sync
- |
for dir in services/*/; do
if [ -f "$dir/go.mod" ]; then
(cd "$dir" && go mod tidy)
fi
done
- |
for dir in workers/*/; do
if [ -f "$dir/go.mod" ]; then
(cd "$dir" && go mod tidy)
fi
done
- |
for dir in cli/*/; do
if [ -f "$dir/go.mod" ]; then
(cd "$dir" && go mod tidy)
fi
done
when:
branch: main
event: push
# COMPONENT_STEPS_BELOW
# Woodpecker CI step for background-processor worker
# Add this step to your .woodpecker.yml
build-background-processor:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: slack-q-1770281596/background-processor
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: workers/background-processor/Dockerfile
cache: true
skip-tls-verify: true
when:
branch: main
event: push
deploy-background-processor:
image: bitnami/kubectl:latest
commands:
- kubectl set image deployment/slack-q-1770281596-background-processor background-processor=registry.threesix.ai/slack-q-1770281596/background-processor:${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: slack-q-1770281596/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/slack-q-1770281596-api api=registry.threesix.ai/slack-q-1770281596/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 slack-q-1770281596"
- kubectl get deployments -n projects -l app=slack-q-1770281596 --no-headers || true
when:
branch: main
event: push