77jobs :
88 build-and-deploy :
99 runs-on : ubuntu-latest
10+
1011 steps :
1112 - name : Checkout code
1213 uses : actions/checkout@v4
@@ -18,15 +19,11 @@ jobs:
1819 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
1920 aws-region : us-east-2
2021
21- - name : Debug AWS identity
22- run : |
23- aws sts get-caller-identity
24- aws configure list
25-
2622 - name : Login to Amazon ECR
2723 uses : aws-actions/amazon-ecr-login@v2
2824
29- - name : Build, Tag, and Push housing-api
25+ # Build and push API image
26+ - name : Build and Push housing-api
3027 run : |
3128 IMAGE_TAG=${GITHUB_SHA}
3229 ECR_REGISTRY=202197228308.dkr.ecr.us-east-2.amazonaws.com
3835 docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
3936 docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
4037
41- - name : Build, Tag, and Push housing-streamlit
38+ # Build and push Streamlit image
39+ - name : Build and Push housing-streamlit
4240 run : |
4341 IMAGE_TAG=${GITHUB_SHA}
4442 ECR_REGISTRY=202197228308.dkr.ecr.us-east-2.amazonaws.com
@@ -50,16 +48,18 @@ jobs:
5048 docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
5149 docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
5250
53- - name : Deploy housing-api-service
51+ # Deploy API service
52+ - name : Deploy API service
5453 run : |
5554 aws ecs update-service \
56- --cluster housing-api -cluster-ecs \
57- --service housing-api- service \
55+ --cluster regression-model -cluster-for-project \
56+ --service regression-model-cluster-for-project- service-07233mgp \
5857 --force-new-deployment
5958
60- - name : Deploy housing-streamlit-service
59+ # Deploy Streamlit service
60+ - name : Deploy Streamlit service
6161 run : |
6262 aws ecs update-service \
63- --cluster housing-api -cluster-ecs \
64- --service housing-streamlit-service \
63+ --cluster regression-model -cluster-for-project \
64+ --service housing-streamlit-service-5cvxvvhd \
6565 --force-new-deployment
0 commit comments