-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathlogstash-output-opensearch.yaml
66 lines (61 loc) · 1.81 KB
/
logstash-output-opensearch.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# WARNING: Due to the way logstash loads plugins we have to load this package
# at build time. That means the logstash package must be rebuilt to
# pick up changes from this package. Simply building and publishing
# a new version of this package is not enough to land changes.
#
# tl;dr: If you're touching this package please also rebuild logstash!!
#
package:
name: logstash-output-opensearch
version: 2.0.2
epoch: 0
description: Logstash - transport and process your logs, events, or other data
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- bash
- busybox
- ca-certificates-bundle
- jruby-9.4
- jruby-9.4-default-ruby
- openjdk-17
- openjdk-17-default-jvm
environment:
JAVA_HOME: /usr/lib/jvm/default-jvm
vars:
gem: logstash-output-opensearch
# Do not run ruby/clean as logstash needs the cached gem file to install
pipeline:
- uses: git-checkout
with:
repository: https://github.com/opensearch-project/logstash-output-opensearch
tag: ${{package.version}}
expected-commit: 844fb28d9e148e4042563d277b8e4c8a63392f81
- uses: ruby/build
with:
gem: ${{vars.gem}}
- runs: |
# Get rid of the `-VERSION-ARCH-OS` suffix from the gem file name.
mv ${{vars.gem}}-*.gem ${{vars.gem}}-${{package.version}}.gem
- uses: ruby/install
with:
gem: ${{vars.gem}}
version: ${{package.version}}
test:
environment:
contents:
packages:
- logstash
- openjdk-17-default-jvm
pipeline:
- runs: |
logstash-plugin install $(find / -type f -name "${{package.name}}-*.gem")
logstash-plugin list | grep ${{package.name}}
update:
enabled: true
github:
identifier: opensearch-project/logstash-output-opensearch
use-tag: true