48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
# CI/CD Pipeline for sp4-final-1770497325
|
|
# 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
|
|
# Do not remove the marker above - component steps are inserted here
|
|
|
|
verify:
|
|
image: bitnami/kubectl:latest
|
|
commands:
|
|
- echo "Pipeline complete for sp4-final-1770497325"
|
|
- kubectl get deployments -n projects -l app=sp4-final-1770497325 --no-headers || true
|
|
when:
|
|
branch: main
|
|
event: push
|