forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaws-flb-cloudwatch.yaml
45 lines (40 loc) · 1.22 KB
/
aws-flb-cloudwatch.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
41
42
43
44
45
package:
name: aws-flb-cloudwatch
version: 1.9.4
epoch: 13
description: A Fluent Bit output plugin for CloudWatch Logs
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- go
- wolfi-baselayout
pipeline:
- uses: git-checkout
with:
repository: https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit
tag: v${{package.version}}
expected-commit: 7b8dae0d6dedf942bc1e9feded197b8d1a9d261a
- runs: |
mkdir -p ${{targets.destdir}}/usr/bin
go build -buildmode c-shared -o ${{targets.destdir}}/usr/bin/cloudwatch.so ./
subpackages:
- name: "aws-flb-cloudwatch-compat"
description: "Compatibility package to place binaries in the location expected by AWS for Fluent Bit"
pipeline:
- runs: |
# The AWS for Fluent Bit expects the .so libraries to be in /fluent-bit
mkdir -p "${{targets.subpkgdir}}"/fluent-bit
ln -sf /usr/bin/cloudwatch.so ${{targets.subpkgdir}}/fluent-bit/cloudwatch.so
- uses: strip
update:
enabled: true
github:
identifier: aws/amazon-cloudwatch-logs-for-fluent-bit
strip-prefix: v
use-tag: true
tag-filter: v