@@ -2,10 +2,10 @@ name: Build
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - master
6
6
pull_request :
7
7
branches :
8
- - master
8
+ - master
9
9
env :
10
10
SCRIPTS_NO_INTERACTIVE : " true"
11
11
defaults :
@@ -17,48 +17,49 @@ jobs:
17
17
if : " ! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
18
18
runs-on : ubuntu-latest
19
19
steps :
20
- - uses : actions/checkout@v2
21
- - uses : actions/setup-go@v2
22
- with :
23
- go-version : " ^1.15"
24
- - run : |
25
- make
26
- git --no-pager diff -- ':(exclude)go.sum' && git diff --quiet -- ':(exclude)go.sum'
27
- - uses : codecov/codecov-action@v1
20
+ - uses : actions/checkout@v2
21
+ - uses : actions/setup-go@v2
22
+ with :
23
+ go-version : " ^1.15"
24
+ - run : |
25
+ make
26
+ git --no-pager diff -- ':(exclude)go.sum' && git diff --quiet -- ':(exclude)go.sum'
27
+ - uses : codecov/codecov-action@v1
28
28
package :
29
29
name : Docker
30
30
if : " ! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
31
31
runs-on : ubuntu-latest
32
32
steps :
33
- - name : Set up Docker Buildx
34
- uses : docker/setup-buildx-action@v1
35
- - name : Login to DockerHub
36
- uses : docker/login-action@v1
37
- with :
38
- username : ${{ secrets.DOCKER_USER }}
39
- password : ${{ secrets.DOCKER_PASS }}
40
- - uses : actions/checkout@v2
41
- - uses : actions/setup-go@v2
42
- with :
43
- go-version : " ^1.15"
44
- - name : Build
45
- run : |
46
- curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/master/bootstrap" | bash -s "release"
47
- DOCKER_IMAGE="${{ secrets.DOCKER_USER }}/$(make name)" IMAGE_VERSION="$(make version)" ./scripts/release build docker
33
+ - name : Set up Docker Buildx
34
+ uses : docker/setup-buildx-action@v1
35
+ - name : Login to DockerHub
36
+ uses : docker/login-action@v1
37
+ with :
38
+ username : ${{ secrets.DOCKER_USER }}
39
+ password : ${{ secrets.DOCKER_PASS }}
40
+ - uses : actions/checkout@v2
41
+ - uses : actions/setup-go@v2
42
+ with :
43
+ go-version : " ^1.15"
44
+ - name : Build
45
+ run : |
46
+ curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/master/bootstrap" | bash -s "release"
47
+ DOCKER_IMAGE="${{ secrets.DOCKER_USER }}/$(make name)" IMAGE_VERSION="$(make version)" ./scripts/release build docker
48
48
publish :
49
49
name : Publish
50
- if : github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')
50
+ if : github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message),
51
+ ' [skip-ci]' )
51
52
runs-on : ubuntu-latest
52
53
needs : package
53
54
steps :
54
- - uses : actions/checkout@v2
55
- - name : Publish
56
- env :
57
- DOCKER_USER : ${{ secrets.DOCKER_USER }}
58
- DOCKER_PASS : ${{ secrets.DOCKER_PASS }}
59
- run : |
60
- curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/master/bootstrap" | bash -s "docker_promote"
61
- scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version)"
62
- - name : GoReport
63
- run : |
64
- curl --disable --silent --show-error --location --max-time 30 -X POST https://goreportcard.com/checks?repo=github.com/${GITHUB_REPOSITORY}
55
+ - uses : actions/checkout@v2
56
+ - name : Publish
57
+ env :
58
+ DOCKER_USER : ${{ secrets.DOCKER_USER }}
59
+ DOCKER_PASS : ${{ secrets.DOCKER_PASS }}
60
+ run : |
61
+ curl --disable --silent --show-error --location --max-time 30 "https://raw.githubusercontent.com/ViBiOh/scripts/master/bootstrap" | bash -s "docker_promote"
62
+ scripts/docker_promote "${{ secrets.DOCKER_USER }}/$(make name)" "$(make version)"
63
+ - name : GoReport
64
+ run : |
65
+ curl --disable --silent --show-error --location --max-time 30 -X POST https://goreportcard.com/checks?repo=github.com/${GITHUB_REPOSITORY}
0 commit comments