Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json

steps:
- label: ":python: Run tests (make check yamllint)"
key: tests
command: ".buildkite/scripts/run-tests.sh"
agents:
image: "docker.elastic.co/ci-agent-images/pipelib:0.27.0@sha256:d1713778d27e0b6208f59ba8761f04ef033af4c4237cb2614a09d38584c5ff88"
cpu: "2"
memory: "2G"
7 changes: 7 additions & 0 deletions .buildkite/scripts/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail

git config --global --add safe.directory "$PWD"
git fetch --prune --unshallow --tags || true

make check yamllint
49 changes: 49 additions & 0 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/catalog-info.json
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: ecs
description: Elastic Common Schema
spec:
type: library
owner: group:ecs
lifecycle: production

---
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: buildkite-pipeline-ecs
description: ECS unit tests and lint checks
links:
- title: Pipeline
url: https://buildkite.com/elastic/ecs
spec:
type: buildkite-pipeline
owner: group:ecs
system: buildkite
implementation:
apiVersion: buildkite.elastic.dev/v1
kind: Pipeline
metadata:
name: ecs
description: ECS unit tests and lint checks
spec:
repository: elastic/ecs
pipeline_file: ".buildkite/pipeline.yml"
branch_configuration: "main 8.* 9.* 10.*"
cancel_intermediate_builds: true
cancel_intermediate_builds_branch_filter: '!main !8.* !9.*'
skip_intermediate_builds: true
skip_intermediate_builds_branch_filter: '!main !8.* !9.*'
provider_settings:
build_pull_requests: true
build_pull_request_forks: false
build_tags: false
teams:
ecs:
access_level: MANAGE_BUILD_AND_READ
everyone:
access_level: READ_ONLY
Loading