Skip to content

Commit bb60f9d

Browse files
committed
Split test & publish steps
Signed-off-by: Gerhard Lazu <gerhard@lazu.co.uk>
1 parent 72848a6 commit bb60f9d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/test_and_publish_image.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
name: Test & Publish Image
1+
name: Test & Publish Docker Image
22

33
on:
44
push:
55

66
jobs:
7-
test_and_publish_image:
7+
test:
88
runs-on: ubuntu-latest
99
services:
1010
rabbitmq-streaming:
@@ -18,25 +18,25 @@ jobs:
1818
uses: actions/setup-go@v2
1919
with:
2020
go-version: 1.16
21-
2221
- uses: actions/checkout@v2
23-
24-
- name: Test
22+
- name: Run tests
2523
run: make test
26-
27-
- name: Upload coverage to Codecov
24+
- name: Upload code coverage to Codecov
2825
run: bash <(curl -s https://codecov.io/bash)
2926

27+
publish:
28+
runs-on: ubuntu-latest
29+
needs: test
30+
steps:
3031
- name: Set up Docker Buildx
3132
uses: docker/setup-buildx-action@v1
32-
3333
- name: Login to DockerHub
3434
uses: docker/login-action@v1
3535
with:
3636
username: ${{ secrets.DOCKERHUB_USERNAME }}
3737
password: ${{ secrets.DOCKERHUB_TOKEN }}
38-
39-
- name: Publish
38+
- uses: actions/checkout@v2
39+
- name: Publish Docker Image
4040
run: |
4141
set -x
4242
VERSION=latest

0 commit comments

Comments
 (0)