-
Notifications
You must be signed in to change notification settings - Fork 4
104 lines (92 loc) · 2.72 KB
/
prometheusexporter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: Build Prometheus Exporter
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
test-prom-metrics-flow-node:
name: Test Prom-Metrics Flow-Node
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
workingDirectory: 'apibuilder4prometheus/custom_flow_nodes/api-builder-plugin-prometheus-metrics'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Run npm ci, npm test
working-directory: ${{env.workingDirectory}}
env:
LOG_LEVEL: DEBUG
CI: true
run: |
npm ci
npm run build --if-present
npm test
apim-api-mgt-flow-node:
name: Test API-Mgt Flow-Node
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
workingDirectory: 'apibuilder4prometheus/custom_flow_nodes/api-builder-plugin-axway-api-management'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Run npm ci, npm test
working-directory: ${{env.workingDirectory}}
env:
LOG_LEVEL: DEBUG
CI: true
run: |
npm ci
npm run build --if-present
npm test
test-prom-metrics-api:
name: Test Prometheus-Metrics API
needs: [test-prom-metrics-flow-node, apim-api-mgt-flow-node]
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
workingDirectory: 'apibuilder4prometheus'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Test Metrics API
working-directory: ${{env.workingDirectory}}
env:
ANM_URL: ${{ secrets.ANM_URL }}
ANM_USERNAME: ${{ secrets.ANM_USERNAME }}
ANM_PASSWORD: ${{ secrets.ANM_PASSWORD }}
LOG_LEVEL: DEBUG
run: |
npm ci
npm run build --if-present
npm test
push-latest-apibuilder4prometheus:
name: Push latest APIBuilder4Prometheus
needs: [test-prom-metrics-api]
if: "!contains(github.event.head_commit.message, 'skip ci')"
env:
workingDirectory: 'apibuilder4prometheus'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish Docker image (latest)
uses: elgohr/[email protected]
with:
name: cwiechmann/apibuilder4prometheus
workdir: ${{env.workingDirectory}}
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
tags: "latest"