File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Test & Publish Image
1
+ name : Test & Publish Docker Image
2
2
3
3
on :
4
4
push :
5
5
6
6
jobs :
7
- test_and_publish_image :
7
+ test :
8
8
runs-on : ubuntu-latest
9
9
services :
10
10
rabbitmq-streaming :
@@ -18,25 +18,25 @@ jobs:
18
18
uses : actions/setup-go@v2
19
19
with :
20
20
go-version : 1.16
21
-
22
21
- uses : actions/checkout@v2
23
-
24
- - name : Test
22
+ - name : Run tests
25
23
run : make test
26
-
27
- - name : Upload coverage to Codecov
24
+ - name : Upload code coverage to Codecov
28
25
run : bash <(curl -s https://codecov.io/bash)
29
26
27
+ publish :
28
+ runs-on : ubuntu-latest
29
+ needs : test
30
+ steps :
30
31
- name : Set up Docker Buildx
31
32
uses : docker/setup-buildx-action@v1
32
-
33
33
- name : Login to DockerHub
34
34
uses : docker/login-action@v1
35
35
with :
36
36
username : ${{ secrets.DOCKERHUB_USERNAME }}
37
37
password : ${{ secrets.DOCKERHUB_TOKEN }}
38
-
39
- - name : Publish
38
+ - uses : actions/checkout@v2
39
+ - name : Publish Docker Image
40
40
run : |
41
41
set -x
42
42
VERSION=latest
You can’t perform that action at this time.
0 commit comments