Skip to content

Commit 02e5b26

Browse files
build auction image
1 parent 382fc01 commit 02e5b26

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/deployment.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Docker Image CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main, master ]
7+
pull_request:
8+
branches: [ main, master ]
9+
jobs:
10+
build-and-push:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
service:
15+
- name: "aleksandromilenkov/auction-svc"
16+
path: "src/AuctionService"
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v3
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v2
22+
- name: Login to DockerHub
23+
uses: docker/login-action@v3
24+
with:
25+
username: ${{ secrets.DOCKER_USERNAME }}
26+
password: ${{ secrets.DOCKER_TOKEN }}
27+
- name: Build and push docker image
28+
uses: docker/build-push-action@v6
29+
with:
30+
context: .
31+
file: src/NotificationService/Dockerfile
32+
push: true
33+
tags: aleksandromilenkov/notify-svc:latest
34+
- name: Build and push bid-svc image
35+
uses: docker/build-push-action@v4
36+
with:
37+
context: .
38+
file: ${{ matrix.service.path }}/Dockerfile
39+
push: true
40+
tags: ${{ matrix.service.name }}:latest

0 commit comments

Comments
 (0)