File tree 4 files changed +95
-6
lines changed
4 files changed +95
-6
lines changed Original file line number Diff line number Diff line change 23
23
jobs :
24
24
25
25
verify :
26
- runs-on : ubuntu-18 .04
26
+ runs-on : ubuntu-22 .04
27
27
steps :
28
28
- name : Checkout
29
29
uses : actions/checkout@v2
30
30
- name : Verify Code
31
31
run : make verify
32
32
33
33
golangci-lint :
34
- runs-on : ubuntu-18 .04
34
+ runs-on : ubuntu-22 .04
35
35
steps :
36
36
- name : Checkout
37
37
uses : actions/checkout@v2
48
48
args : -v
49
49
50
50
markdownlint-misspell-shellcheck :
51
- runs-on : ubuntu-18 .04
51
+ runs-on : ubuntu-22 .04
52
52
# this image is build from Dockerfile
53
53
# https://github.com/pouchcontainer/pouchlinter/blob/master/Dockerfile
54
54
container : pouchcontainer/pouchlinter:v0.1.2
73
73
# bash -c "exit $code";
74
74
75
75
unit-tests :
76
- runs-on : ubuntu-18 .04
76
+ runs-on : ubuntu-22 .04
77
77
steps :
78
78
- uses : actions/checkout@v2
79
79
with :
@@ -104,7 +104,7 @@ jobs:
104
104
fail_ci_if_error : true
105
105
verbose : true
106
106
e2e-tests :
107
- runs-on : ubuntu-18 .04
107
+ runs-on : ubuntu-22 .04
108
108
steps :
109
109
- uses : actions/checkout@v2
110
110
with :
Original file line number Diff line number Diff line change 1
- name : Release
1
+ name : Release Images
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change
1
+ name : Release Assets
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+ workflow_dispatch : {}
8
+
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ goreleaser :
14
+ if : github.repository == 'openyurtio/openyurt'
15
+ permissions :
16
+ contents : write
17
+ actions : read
18
+ checks : write
19
+ issues : read
20
+ packages : write
21
+ pull-requests : read
22
+ repository-projects : read
23
+ statuses : read
24
+ runs-on : ubuntu-22.04
25
+ name : goreleaser
26
+ steps :
27
+ - name : Checkout
28
+ uses : actions/checkout@v3
29
+ with :
30
+ fetch-depth : 0
31
+ - name : Set up Go
32
+ uses : actions/setup-go@v4
33
+ with :
34
+ go-version : 1.18
35
+ cache : true
36
+ - name : Run GoReleaser
37
+ uses : goreleaser/goreleaser-action@v4
38
+ with :
39
+ distribution : goreleaser
40
+ version : latest
41
+ args : release --clean
42
+ env :
43
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # This is an example .goreleaser.yml file with some sensible defaults.
2
+ # Make sure to check the documentation at https://goreleaser.com
3
+ builds :
4
+ - id : yurtadm
5
+ binary : yurtadm
6
+ goos :
7
+ - linux
8
+ - darwin
9
+ goarch :
10
+ - amd64
11
+ - arm64
12
+ main : ./cmd/yurtadm/yurtadm.go
13
+ ldflags :
14
+ - -s -w -X github.com/openyurtio/openyurt/pkg/projectinfo.gitVersion={{ .Tag }} -X github.com/openyurtio/openyurt/pkg/projectinfo.gitCommit={{ .ShortCommit }} -X github.com/openyurtio/openyurt/pkg/projectinfo.buildDate={{ .Date }}
15
+ env :
16
+ - CGO_ENABLED=0
17
+
18
+ archives :
19
+ - format : tar.gz
20
+ id : yurtadm-tgz
21
+ wrap_in_directory : ' {{ .Os }}-{{ .Arch }}'
22
+ builds :
23
+ - yurtadm
24
+ name_template : ' {{ .ArtifactName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
25
+ files : [ LICENSE, README.md ]
26
+ - format : zip
27
+ id : yurtadm-zip
28
+ builds :
29
+ - yurtadm
30
+ wrap_in_directory : ' {{ .Os }}-{{ .Arch }}'
31
+ name_template : ' {{ .ArtifactName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}'
32
+ files : [ LICENSE, README.md ]
33
+
34
+ checksum :
35
+ name_template : ' sha256sums.txt'
36
+ changelog :
37
+ sort : asc
38
+ filters :
39
+ exclude :
40
+ - ' ^docs:'
41
+ - ' ^test:'
42
+
43
+ # The lines beneath this are called `modelines`. See `:help modeline`
44
+ # Feel free to remove those if you don't want/use them.
45
+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
46
+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
You can’t perform that action at this time.
0 commit comments