This repository was archived by the owner on Sep 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +32
-9
lines changed
Expand file tree Collapse file tree 2 files changed +32
-9
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ./...
You can’t perform that action at this time.
0 commit comments