-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (36 loc) · 1.07 KB
/
beats.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
# This is a basic workflow to help you get started with Actions
name: CI
on:
push:
branches: [ master ]
create:
tags:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
beat:
strategy:
matrix:
arch: [armv7]
beat: [filebeat, metricbeat, heartbeat]
runs-on: ubuntu-latest
container:
image: golang:1.20.11
name: ${{ matrix.beat }} ${{ matrix.arch }}
steps:
- uses: actions/checkout@v2
- name: Build beat
id: build-beat
run: ./build.sh ${{ matrix.beat }} ${{ matrix.arch }}
- uses: actions/upload-artifact@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{ matrix.beat }}-${{ matrix.arch }}
path: ${{ matrix.beat }}-*.tar.gz
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ matrix.beat }}-*.tar.gz