Skip to content

Commit a49a755

Browse files
Validate the Vector config
1 parent cea7d37 commit a49a755

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Validate Vector Config
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
tags: ["v*"]
7+
pull_request:
8+
branches: ["main"]
9+
workflow_dispatch:
10+
11+
jobs:
12+
run-bash:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Run bash commands
19+
run: |
20+
docker run -v ${{ github.workspace }}/conf:/etc/vector/ -e VECTOR_CONFIG_DIR=/etc/vector/ -e LOKI_ENDPOINT -e LOKI_USER -e LOKI_TOKEN -e PROMETHEUS_ENDPOINT -e PROMETHEUS_USER -e PROMETHEUS_TOKEN $(yq .services.vector.image docker-compose.yml) validate --no-environment --skip-healthchecks
21+
env:
22+
LOKI_ENDPOINT: "http://not_real_endpoint:3100/loki/api/v1/push"
23+
LOKI_USER: "not_real_username"
24+
LOKI_TOKEN: "not_real_token"
25+
PROMETHEUS_ENDPOINT: "http://not_real_endpoint:9090/api/v1/write"
26+
PROMETHEUS_USER: "not_real_username"
27+
PROMETHEUS_TOKEN: "not_real_token"

0 commit comments

Comments
 (0)