File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments