@@ -10,42 +10,48 @@ jobs:
10
10
name : Test
11
11
strategy :
12
12
matrix :
13
- go-version : [1.13.x, 1.14.x, 1.15.x, 1. 16.x, 1.17.x, 1.18.x, 1.19.x]
13
+ go-version : [1.16.x, 1.17.x, 1.18.x, 1.19.x]
14
14
platform : [ubuntu-latest, macos-latest, windows-latest]
15
15
runs-on : ${{ matrix.platform }}
16
16
steps :
17
17
- name : Install Go
18
- uses : actions/setup-go@v1
18
+ uses : actions/setup-go@v2
19
19
with :
20
20
go-version : ${{ matrix.go-version }}
21
21
- name : Checkout code
22
- uses : actions/checkout@v3.1.0
22
+ uses : actions/checkout@v3
23
23
- name : Build
24
24
run : go build -v .
25
25
- name : Test
26
26
run : go test -v ./...
27
- env :
28
- GODEBUG : x509ignoreCN=0
29
27
# ================
30
- # RELEASE JOB
28
+ # RELEASE JOBS
31
29
# runs after a success test
32
30
# only runs on push "v*" tag
33
31
# ================
34
- release :
35
- name : Release
32
+ release_binaries :
33
+ name : Release Binaries
36
34
needs : test
37
35
if : startsWith(github.ref, 'refs/tags/v')
38
36
runs-on : ubuntu-latest
39
37
steps :
40
38
- name : Check out code
41
- uses : actions/checkout@v3.1.0
39
+ uses : actions/checkout@v3
42
40
- name : goreleaser
43
41
if : success()
44
42
uses : docker://goreleaser/goreleaser:latest
45
43
env :
46
44
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
45
with :
48
46
args : release --config .github/goreleaser.yml
47
+ release_docker :
48
+ name : Release Docker Images
49
+ needs : test
50
+ if : startsWith(github.ref, 'refs/tags/v')
51
+ runs-on : ubuntu-latest
52
+ steps :
53
+ - name : Check out code
54
+ uses : actions/checkout@v3
49
55
- name : Set up QEMU
50
56
uses : docker/setup-qemu-action@v1
51
57
- name : Set up Docker Buildx
@@ -58,21 +64,16 @@ jobs:
58
64
password : ${{ secrets.DOCKERHUB_TOKEN }}
59
65
- name : Docker meta
60
66
id : docker_meta
61
- uses : crazy-max/ghaction-docker-meta@v1
67
+ uses : docker/metadata-action@v4
62
68
with :
63
69
images : jpillora/chisel
64
70
tag-latest : true
65
- # Outputs:
66
- # jpillora/chisel:1.2.3
67
- # jpillora/chisel:1.2
68
- # jpillora/chisel:1
69
- # jpillora/chisel:latest
70
- tag-semver : |
71
- {{version}}
72
- {{major}}.{{minor}}
73
- {{major}}
71
+ tags : |
72
+ type=semver,pattern={{version}}
73
+ type=semver,pattern={{major}}.{{minor}}
74
+ type=semver,pattern={{major}}
74
75
- name : Build and push
75
- uses : docker/build-push-action@v2
76
+ uses : docker/build-push-action@v3
76
77
with :
77
78
context : .
78
79
platforms : linux/amd64,linux/arm64,linux/ppc64le,linux/386,linux/arm/v7,linux/arm/v6
0 commit comments