This repository was archived by the owner on Sep 3, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 66 - ' *' # Push events to every tag not containing /
77
88jobs :
9- build :
9+ push_to_registry :
1010 runs-on : ubuntu-latest
1111 steps :
12+ - name : Check out the repo
13+ uses : actions/checkout@v3
1214 - name : Login to Docker Hub
1315 uses : docker/login-action@v2
1416 with :
15- username : ${{ secrets.DOCKER_HUB_USERNAME }}
16- password : ${{ secrets.DOCKER_HUB_TOKEN }}
17+ username : ${{ env.DOCKER_HUB_USERNAME }}
18+ password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
19+ - name : Extract metadata (tags, labels) for Docker
20+ id : meta
21+ uses : docker/metadata-action@v4
22+ with :
23+ images : ${{ env.DOCKER_HUB_USERNAME }}/gitlab-review-bot
1724 - name : Build and push to Docker Hub
1825 uses : docker/build-push-action@v3
1926 with :
2027 context : .
21- file : deploy/Dockerfile
2228 push : true
23- tags : ${{ secrets.DOCKER_HUB_USERNAME }}/gitlab-review-bot:latest
29+ tags : ${{ steps.meta.outputs.tags }}
30+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ COPY go.sum ./
77
88RUN go mod download
99
10- COPY ./ ./
10+ COPY . .
1111RUN go build -o /gitlab-review-bot github.com/spatecon/gitlab-review-bot/cmd/gitlab-review-bot
1212
1313CMD ["/gitlab-review-bot" ]
Original file line number Diff line number Diff line change @@ -27,11 +27,9 @@ services:
2727 ports :
2828 - " 8081:8081"
2929 gitlab-review-bot :
30+ image : spatecon/gitlab-review-bot:latest
3031 depends_on :
3132 - mongo
32- build :
33- context : .
34- dockerfile : deploy/Dockerfile
3533 restart : " no"
3634 environment :
3735 - MONGO_HOST=mongo
You can’t perform that action at this time.
0 commit comments