Skip to content

Commit 35c3f0a

Browse files
committed
updating
1 parent 6621765 commit 35c3f0a

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ jobs:
1616
with:
1717
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
1818
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
19-
aws-region: ${{ secrets.AWS_REGION }}
19+
aws-region: us-east-2
20+
21+
- name: Debug AWS identity
22+
run: |
23+
aws sts get-caller-identity
24+
aws configure list
2025
2126
- name: Login to Amazon ECR
2227
uses: aws-actions/amazon-ecr-login@v2
2328

24-
# Build and push housing-api image
2529
- name: Build, Tag, and Push housing-api
2630
run: |
2731
IMAGE_TAG=${GITHUB_SHA}
@@ -34,7 +38,6 @@ jobs:
3438
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
3539
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
3640
37-
# Build and push housing-streamlit image
3841
- name: Build, Tag, and Push housing-streamlit
3942
run: |
4043
IMAGE_TAG=${GITHUB_SHA}
@@ -47,18 +50,16 @@ jobs:
4750
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG $ECR_REGISTRY/$ECR_REPOSITORY:latest
4851
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
4952
50-
# Deploy to ECS - API
5153
- name: Deploy housing-api-service
5254
run: |
5355
aws ecs update-service \
5456
--cluster housing-api-cluster-ecs \
5557
--service housing-api-service \
5658
--force-new-deployment
5759
58-
# Deploy to ECS - Streamlit
5960
- name: Deploy housing-streamlit-service
6061
run: |
6162
aws ecs update-service \
6263
--cluster housing-api-cluster-ecs \
6364
--service housing-streamlit-service \
64-
--force-new-deployment
65+
--force-new-deployment

0 commit comments

Comments
 (0)