-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Xoán Mallón
committed
Mar 17, 2020
1 parent
be7d30f
commit 661fc04
Showing
4 changed files
with
85 additions
and
27 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,31 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Unshallow | ||
run: git fetch --prune --unshallow | ||
- name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.14.x | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
key: ${{ secrets.YOUR_PRIVATE_KEY }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Run GoReleaser | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: ./.github/actions/goreleaser |
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,47 @@ | ||
# This is an example goreleaser.yaml file with some sane defaults. | ||
# Make sure to check the documentation at http://goreleaser.com | ||
project_name: log-stream-filter | ||
builds: | ||
- id: log-stream-filter | ||
binary: log-stream-filter | ||
main: cmd/main.go | ||
env: | ||
- GO111MODULE=on | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
goarch: | ||
- amd64 | ||
|
||
changelog: | ||
sort: desc | ||
|
||
archives: | ||
- format_overrides: | ||
- goos: windows | ||
format: zip | ||
replacements: | ||
amd64: 64-bit | ||
darwin: macOS | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
release: | ||
github: | ||
owner: xoanmm | ||
name: log-stream-filter | ||
|
||
nfpms: | ||
- id: log-stream-filter | ||
builds: | ||
- log-stream-filter | ||
formats: | ||
- deb | ||
vendor: Xoán Mallón | ||
homepage: https://github.com/xoanmm/log-stream-filter | ||
maintainer: xoanmmm <[email protected]> | ||
description: filter aws log streams of aws logGroup and save logEvents of each logStreamGroup in one file |
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
module github.com/xoanmm/log-stream-filter | ||
|
||
go 1.14 | ||
go 1.13 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.29.25 | ||
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect | ||
github.com/dustin/go-humanize v1.0.0 | ||
github.com/urfave/cli/v2 v2.1.1 | ||
golang.org/x/net v0.0.0-20200301022130-244492dfa37a // indirect | ||
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a // indirect | ||
golang.org/x/tools v0.0.0-20200317043434-63da46f3035e // indirect | ||
) |
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