File tree Expand file tree Collapse file tree 6 files changed +104
-3
lines changed
cmd/axiom-cloudfront-lambda Expand file tree Collapse file tree 6 files changed +104
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ env :
9
+ GOVERSION : " 1.18"
10
+
11
+ jobs :
12
+ release :
13
+ name : Release
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ with :
18
+ fetch-depth : 0
19
+ - uses : actions/setup-go@v3
20
+ with :
21
+ go-version : ${{ env.GOVERSION }}
22
+ - uses : actions/cache@v3
23
+ with :
24
+ path : |
25
+ ~/go/pkg/mod
26
+ ~/.cache/go-build
27
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28
+ restore-keys : ${{ runner.os }}-go-
29
+ - uses : goreleaser/goreleaser-action@v2
30
+ with :
31
+ args : release
32
+ env :
33
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ project_name : axiom-cloudfront-lambda
2
+
3
+ builds :
4
+ - id : axiom-cloudfront-lambda
5
+ goos :
6
+ - linux
7
+ goarch :
8
+ - amd64
9
+ binary : axiom-cloudfront-lambda
10
+ main : ./cmd/axiom-cloudfront-lambda
11
+ build :
12
+ env :
13
+ - CGO_ENABLED=0
14
+ tags :
15
+ - osusergo
16
+ - netgo
17
+ - static_build
18
+ flags :
19
+ - -buildvcs=false
20
+ - -buildmode=pie
21
+ - -installsuffix=cgo
22
+ - -trimpath
23
+ ldflags :
24
+ - -s -w -extldflags "-fno-PIC -static -Wl -z now -z relro"
25
+ - -X github.com/axiomhq/pkg/version.release={{ .Version }}
26
+ - -X github.com/axiomhq/pkg/version.revision={{ .ShortCommit }}
27
+ - -X github.com/axiomhq/pkg/version.buildDate={{ .CommitDate }}
28
+ - -X github.com/axiomhq/pkg/version.buildUser=goreleaser
29
+ mod_timestamp : " {{ .CommitTimestamp }}"
30
+
31
+ archives :
32
+ - id : axiom-cloudfront-lambda
33
+ builds :
34
+ - axiom-cloudfront-lambda
35
+ name_template : " {{ .ProjectName }}_{{ .Version }}"
36
+ wrap_in_directory : true
37
+ format : zip
38
+ files :
39
+ - LICENSE
40
+ - README.md
41
+
42
+ checksum :
43
+ name_template : checksums.txt
44
+
45
+ snapshot :
46
+ name_template : " {{ .Tag }}-next"
47
+
48
+ changelog :
49
+ sort : asc
50
+ filters :
51
+ exclude :
52
+ - " ^docs:"
53
+ - " ^test:"
54
+
55
+ milestones :
56
+ - repo :
57
+ owner : axiomhq
58
+ name : axiom-cloudfront-lambda
59
+ close : true
60
+ fail_on_error : false
61
+
62
+ release :
63
+ github :
64
+ owner : axiomhq
65
+ name : axiom-cloudfront-lambda
66
+ prerelease : auto
67
+ name_template : " Axiom CloudFront Lambda v{{ .Version }}"
Original file line number Diff line number Diff line change @@ -13,14 +13,15 @@ import (
13
13
"github.com/aws/aws-sdk-go/aws"
14
14
"github.com/aws/aws-sdk-go/aws/session"
15
15
"github.com/aws/aws-sdk-go/service/s3"
16
- "github.com/axiomhq/axiom-cloudfront-lambda/parser"
17
16
"github.com/axiomhq/axiom-go/axiom"
18
17
"github.com/axiomhq/pkg/cmd"
19
18
"go.uber.org/zap"
19
+
20
+ "github.com/axiomhq/axiom-cloudfront-lambda/pkg/parser"
20
21
)
21
22
22
23
func main () {
23
- cmd .Run ("axiom-cloudwatch -lambda" , run ,
24
+ cmd .Run ("axiom-cloudfront -lambda" , run ,
24
25
cmd .WithRequiredEnvVars ("AXIOM_DATASET" ),
25
26
cmd .WithValidateAxiomCredentials (),
26
27
)
File renamed without changes.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import (
10
10
11
11
func TestParseLogs (t * testing.T ) {
12
12
// read data from data/logs.tsv
13
- file , err := os .Open ("../data /logs.tsv" )
13
+ file , err := os .Open ("testdata /logs.tsv" )
14
14
require .NoError (t , err )
15
15
defer file .Close ()
16
16
File renamed without changes.
You can’t perform that action at this time.
0 commit comments