-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.23 KB
/
cd.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Push Docker Images
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
# Api GateWay
- name: Build and push apiGateway
uses: docker/build-push-action@v4
with:
context: apiGateway/
push: true
tags: osmait/api-gateway:latest
# User Service
- name: Build and push userService
uses: docker/build-push-action@v4
with:
context: userService/userService/
push: true
tags: osmait/user-service:latest
# Post Service
- name: Build and push postService
uses: docker/build-push-action@v4
with:
context: PostServices/post-service/
push: true
tags: osmait/post-service:latest
# Comment service
- name: Build and push commentService
uses: docker/build-push-action@v4
with:
context: CommentServices/
push: true
tags: osmait/comment-service:latest