45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
kind: pipeline
|
|
type: docker
|
|
name: local-ci
|
|
|
|
steps:
|
|
- name: lint
|
|
image: golang:1.25
|
|
commands:
|
|
- go vet ./...
|
|
- golangci-lint run --timeout=5m
|
|
|
|
- name: test
|
|
image: golang:1.25
|
|
commands:
|
|
- go test ./... -v -race -coverprofile=coverage.out
|
|
|
|
- name: build-bridge
|
|
image: golang:1.25
|
|
commands:
|
|
- cd tools && go build -o ../ci-agent-bridge ci_agent_bridge.go
|
|
|
|
- name: apply-ai-patch
|
|
image: docker.io/library/alpine:latest
|
|
volumes:
|
|
- name: patches
|
|
path: /patches
|
|
commands:
|
|
- ./ci-agent-bridge apply --patch /patches/latest.diff --branch ai/patch-1 || true
|
|
|
|
- name: run-pipeline
|
|
image: quay.io/podman/stable:latest
|
|
privileged: true
|
|
commands:
|
|
- ./ci-agent-bridge run --mode podman-compose
|
|
|
|
- name: summarize-artifacts
|
|
image: golang:1.25
|
|
commands:
|
|
- ./ci-agent-bridge summarize --artifacts ./artifacts --out summary.json
|
|
- cat summary.json
|
|
|
|
volumes:
|
|
- name: patches
|
|
host:
|
|
path: /var/lib/ci-agent/patches |