File tree 3 files changed +68
-26
lines changed
3 files changed +68
-26
lines changed Original file line number Diff line number Diff line change
1
+ name : Kubectl trace build and tests
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build_and_test :
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ matrix :
10
+ os : [ubuntu-16.04, ubuntu-18.04] # 16.04.4 release has 4.15 kernel
11
+ # 18.04.3 release has 5.0.0 kernel
12
+ steps :
13
+ - uses : actions/checkout@v2
14
+ - name : Run tests
15
+ run : |
16
+ make test
17
+ - name : Build kubectl trace binary
18
+ run : |
19
+ make _output/bin/kubectl-trace
20
+ - name : Build CI image
21
+ run : |
22
+ ./hack/ci-build-image.sh
23
+ - name : Run integration tests
24
+ run : |
25
+ make integration
26
+ - name : Build cross binaries
27
+ run : |
28
+ curl -LO https://github.com/goreleaser/goreleaser/releases/latest/download/goreleaser_amd64.deb && sudo dpkg -i goreleaser_amd64.deb
29
+ make cross
30
+ - uses : actions/upload-artifact@v1
31
+ with :
32
+ name : ${{ matrix.os }}-kubectl-trace-dist
33
+ path : _output/bin/kubectl-trace
34
+ - uses : actions/upload-artifact@v1
35
+ with :
36
+ name : ${{ matrix.os }}-kubectl-trace-cross-dist
37
+ path : dist
38
+ - name : Upload docker image
39
+ if : >
40
+ github.ref == 'ref/head/master'
41
+ run : |
42
+ ./hack/ci-release-image.sh
Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+
8
+ jobs :
9
+ goreleaser :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v2
18
+ with :
19
+ go-version : 1.14
20
+ - name : Run GoReleaser
21
+ uses : goreleaser/goreleaser-action@v2
22
+ with :
23
+ version : latest
24
+ args : release --rm-dist
25
+ env :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments