Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit bf56740

Browse files
spateconMaria Tsykina
andauthored
DockerHub image (#23)
* #20 Build and push to Docker Hub --------- Co-authored-by: Maria Tsykina <[email protected]>
1 parent 26b42f2 commit bf56740

File tree

2 files changed

+32
-9
lines changed

2 files changed

+32
-9
lines changed

.github/workflows/dockerhub.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: DockerHub
2+
3+
on:
4+
push:
5+
tags:
6+
- '*' # Push events to every tag not containing /
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Login to Docker Hub
13+
uses: docker/login-action@v2
14+
with:
15+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
16+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
17+
- name: Build and push to Docker Hub
18+
uses: docker/build-push-action@v3
19+
with:
20+
context: .
21+
file: deploy/Dockerfile
22+
push: true
23+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/gitlab-review-bot:latest

.github/workflows/go.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v3
1818

19-
- name: Set up Go
20-
uses: actions/setup-go@v3
21-
with:
22-
go-version: 1.19
19+
- name: Set up Go
20+
uses: actions/setup-go@v3
21+
with:
22+
go-version: 1.19
2323

24-
- name: Build
25-
run: go build -v cmd/gitlab-review-bot/main.go
24+
- name: Build
25+
run: go build -v cmd/gitlab-review-bot/main.go
2626

27-
- name: Test
28-
run: go test -v ./...
27+
- name: Test
28+
run: go test -v ./...

0 commit comments

Comments
 (0)