-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathcloudwatch-exporter.yaml
40 lines (36 loc) · 1.15 KB
/
cloudwatch-exporter.yaml
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
package:
name: cloudwatch-exporter
version: 0.15.5 # Check if the version bump in the mvn command is still needed next time this package is updated
epoch: 0
description: Metrics exporter for Amazon AWS CloudWatch
copyright:
- license: Apache-2.0
# NOTE: JRE runtime dependency required. This is defined in the image which
# allows us to switch out the JDK version.
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- curl
- maven
- openjdk-17
- openjdk-17-default-jvm
pipeline:
- uses: git-checkout
with:
repository: https://github.com/prometheus/cloudwatch_exporter
tag: v${{package.version}}
expected-commit: 9e21c87208858a293f1c37d796946fb85570cefd
- runs: |
mvn package
ls target/
mkdir -p ${{targets.destdir}}/usr/share/java/cloudwatch_exporter
mv target/cloudwatch_exporter-${{package.version}}-jar-with-dependencies.jar ${{targets.destdir}}/usr/share/java/cloudwatch_exporter/cloudwatch_exporter.jar
update:
enabled: true
github:
tag-filter: v
identifier: prometheus/cloudwatch_exporter
strip-prefix: v
use-tag: true