Skip to content

Commit 8622077

Browse files
author
Satej Sawant
committed
Add product-service and order-service deployment
1 parent a977f72 commit 8622077

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,30 @@ jobs:
3232
docker build -t ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/spookymart-frontend:${{ github.sha }} ./frontend-service
3333
docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/spookymart-frontend:${{ github.sha }}
3434
35+
docker build -t ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/spookymart-product-service:${{ github.sha }} ./product-service
36+
docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/spookymart-product-service:${{ github.sha }}
37+
38+
docker build -t ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/spookymart-order-service:${{ github.sha }} ./order-service
39+
docker push ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/spookymart-order-service:${{ github.sha }}
40+
41+
- name: Deploy Product Service
42+
uses: aws-actions/amazon-ecs-deploy-express-service@v1
43+
with:
44+
service-name: spookymart-product-service
45+
image: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/spookymart-product-service:${{ github.sha }}
46+
execution-role-arn: ${{ secrets.ECS_EXECUTION_ROLE_ARN }}
47+
infrastructure-role-arn: ${{ secrets.ECS_INFRASTRUCTURE_ROLE_ARN }}
48+
container-port: 3001
49+
50+
- name: Deploy Order Service
51+
uses: aws-actions/amazon-ecs-deploy-express-service@v1
52+
with:
53+
service-name: spookymart-order-service
54+
image: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.us-west-2.amazonaws.com/spookymart-order-service:${{ github.sha }}
55+
execution-role-arn: ${{ secrets.ECS_EXECUTION_ROLE_ARN }}
56+
infrastructure-role-arn: ${{ secrets.ECS_INFRASTRUCTURE_ROLE_ARN }}
57+
container-port: 3002
58+
3559
- name: Deploy Frontend
3660
uses: aws-actions/amazon-ecs-deploy-express-service@v1
3761
with:

0 commit comments

Comments
 (0)