65 lines
2.0 KiB
YAML
65 lines
2.0 KiB
YAML
pipeline:
|
|
name: LocalOrgPipeline
|
|
identifier: LocalOrgPipeline
|
|
projectIdentifier: InternalProject
|
|
orgIdentifier: Default
|
|
stages:
|
|
- stage:
|
|
name: BuildAndTest
|
|
identifier: BuildAndTest
|
|
type: CI
|
|
spec:
|
|
execution:
|
|
steps:
|
|
- step:
|
|
type: Run
|
|
name: Lint
|
|
spec:
|
|
image: golang:1.25
|
|
command: goimports -w .
|
|
- step:
|
|
type: Run
|
|
name: Vet
|
|
spec:
|
|
image: golang:1.25
|
|
command: go vet ./...
|
|
- step:
|
|
type: Run
|
|
name: Test
|
|
spec:
|
|
image: golang:1.25
|
|
command: go test ./... -v -race
|
|
- step:
|
|
type: Run
|
|
name: Build Bridge
|
|
spec:
|
|
image: golang:1.25
|
|
command: |
|
|
cd tools && go build -o ../ci-agent-bridge ci_agent_bridge.go
|
|
- step:
|
|
type: Run
|
|
name: Summarize Artifacts
|
|
spec:
|
|
image: golang:1.25
|
|
command: ./ci-agent-bridge summarize --artifacts ./artifacts --out summary.json
|
|
- stage:
|
|
name: Deploy
|
|
identifier: Deploy
|
|
type: CD
|
|
spec:
|
|
serviceConfig:
|
|
serviceDefinition:
|
|
type: Kubernetes
|
|
spec:
|
|
manifests:
|
|
- manifest:
|
|
identifier: k8sDeployment
|
|
type: K8sManifest
|
|
spec:
|
|
store:
|
|
type: Git
|
|
spec:
|
|
connectorRef: gitConnector
|
|
repoName: internal-repo
|
|
branch: main
|
|
path: manifests/deployment.yaml |