slack-final-1770280107/.woodpecker.yml
jordan a4d76a9a4e
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add service component: auth-api
2026-02-05 08:28:34 +00:00

75 lines
1.8 KiB
YAML

# CI/CD Pipeline for slack-final-1770280107
# 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 auth-api service
# Add this step to your .woodpecker.yml
build-auth-api:
image: woodpeckerci/plugin-kaniko
settings:
registry: registry.threesix.ai
repo: slack-final-1770280107/auth-api
tags:
- latest
- ${CI_COMMIT_SHA:0:8}
context: .
dockerfile: services/auth-api/Dockerfile
cache: true
skip-tls-verify: true
when:
branch: main
event: push
deploy-auth-api:
image: bitnami/kubectl:latest
commands:
- kubectl set image deployment/slack-final-1770280107-auth-api auth-api=registry.threesix.ai/slack-final-1770280107/auth-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-final-1770280107"
- kubectl get deployments -n projects -l app=slack-final-1770280107 --no-headers || true
when:
branch: main
event: push