File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments