Skip to content

Commit a053211

Browse files
sourabhlodhasourabhlodha
andauthored
Production Infrastructure Changes for Continuous Deployment (#58)
* Update README.md (#44) * changes (#45) Co-authored-by: sourabhlodha <sourabhlodha@Administrators-MacBook-Pro.local> * Readme update (#47) rename project and stack --------- Co-authored-by: sourabhlodha <sourabhlodha@Administrators-MacBook-Pro.local> * production infra fix * worker change --------- Co-authored-by: sourabhlodha <sourabhlodha@Administrators-MacBook-Pro.local>
1 parent d6af505 commit a053211

File tree

15 files changed

+67
-547
lines changed

15 files changed

+67
-547
lines changed

.github/workflows/add-to-project.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy AI Platform to ECS
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
packages: write
14+
contents: read
15+
attestations: write
16+
id-token: write
17+
18+
19+
steps:
20+
- name: checkout the repo
21+
uses: actions/checkout@v4
22+
23+
- name: Configure AWS credentials
24+
uses: aws-actions/configure-aws-credentials@v4 # More information on this action can be found below in the 'AWS Credentials' section
25+
with:
26+
role-to-assume: arn:aws:iam::024209611402:role/github-action-role
27+
aws-region: ap-south-1
28+
29+
- name: Login to Amazon ECR
30+
id: login-ecr
31+
uses: aws-actions/amazon-ecr-login@v2
32+
33+
34+
- name: Build and Push Docker Image
35+
env:
36+
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
37+
REPOSITORY: ${{ github.event.repository.name }}-repo
38+
run: |
39+
docker build -t $REGISTRY/$REPOSITORY:latest ./backend
40+
docker push $REGISTRY/$REPOSITORY:latest
41+
42+
- name: Deploy to ECS
43+
run: |
44+
aws ecs update-service --cluster ${{ github.event.repository.name }}-cluster --service ${{ github.event.repository.name }}-service --force-new-deployment

.github/workflows/deploy-production.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/deploy-staging.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.github/workflows/generate-client.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/issue-manager.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/labeler.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/latest-changes.yml

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/lint-backend.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)