Skip to content

Commit 1609205

Browse files
committed
Build and push Docker image
1 parent 48e9c55 commit 1609205

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ on:
66
- master
77
tags:
88
pull_request:
9+
branches:
10+
- master
911

1012
jobs:
1113
build:
1214
runs-on: ubuntu-latest
1315
steps:
14-
- uses: actions/checkout@v2
16+
- name: Checkout
17+
uses: actions/checkout@v2
1518
- name: Setup go
1619
uses: actions/setup-go@v2
1720
with:
@@ -20,5 +23,12 @@ jobs:
2023
run: make clean build
2124
- name: Run test
2225
run: make test
23-
- name: Run docker build
24-
run: make docker-build
26+
- name: Build and push Docker image
27+
uses: docker/[email protected]
28+
with:
29+
username: ${{ secrets.DOCKER_USERNAME }}
30+
password: ${{ secrets.DOCKER_PASSWORD }}
31+
repository: grepplabs/mqtt-proxy
32+
tag_with_ref: true
33+
always_pull: true
34+
add_git_labels: true

0 commit comments

Comments
 (0)