-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support elastic beat release
- Loading branch information
Showing
12 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: elastic beat release by goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
GOPRIVATE: github.com/streamnative | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13.x | ||
|
||
- | ||
name: Create go path directory | ||
env: | ||
GOPATH: /home/runner/work/pulsar-beat-output/pulsar-beat-output/go | ||
run: | | ||
mkdir -p $GOPATH/src/github.com/streamnative/ | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
path: go/src/github.com/streamnative/pulsar-beat-output | ||
|
||
- | ||
name: Unshallow | ||
run: | | ||
mkdir -p go/src/github.com/streamnative/pulsar-beat-output | ||
cd /home/runner/work/pulsar-beat-output/pulsar-beat-output/go/src/github.com/streamnative/pulsar-beat-output && | ||
git fetch --prune --unshallow | ||
- | ||
name: Run GoReleaser | ||
uses: goreleaser/[email protected] | ||
with: | ||
workdir: /home/runner/work/pulsar-beat-output/pulsar-beat-output/go/src/github.com/streamnative/pulsar-beat-output | ||
version: latest | ||
args: release --rm-dist --release-notes=docs/release-note.md --release-header=docs/release-header.md | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.BEAT_ACCESS_TOKEN }} | ||
GOPATH: /home/runner/work/pulsar-beat-output/pulsar-beat-output/go | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ beat.db | |
data/* | ||
logs/* | ||
|
||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# This is an example goreleaser.yaml file with some sane defaults. | ||
# Make sure to check the documentation at http://goreleaser.com | ||
project_name: beat | ||
builds: | ||
- | ||
id: "fielbeat" | ||
binary: filebeat | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- 386 | ||
- amd64 | ||
main: ./filebeat/filebeat.go | ||
- | ||
id: "auditbeat" | ||
env: | ||
- CGO_ENABLED=0 | ||
binary: auditbeat | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- 386 | ||
- amd64 | ||
main: ./auditbeat/auditbeat.go | ||
- | ||
id: "functionbeat" | ||
env: | ||
- CGO_ENABLED=0 | ||
binary: functionbeat | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- 386 | ||
- amd64 | ||
main: ./functionbeat/functionbeat.go | ||
- | ||
id: "journalbeat" | ||
env: | ||
- CGO_ENABLED=0 | ||
binary: journalbeat | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- 386 | ||
- amd64 | ||
main: ./journalbeat/journalbeat.go | ||
- | ||
id: "winlogbeat" | ||
env: | ||
- CGO_ENABLED=0 | ||
binary: winlogbeat | ||
goos: | ||
- linux | ||
- darwin | ||
goarch: | ||
- 386 | ||
- amd64 | ||
main: ./winlogbeat/winlogbeat.go | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' |
File renamed without changes.
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.