Skip to content

Commit 6a43082

Browse files
committed
Swap prod and staging
1 parent bd7c607 commit 6a43082

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/ecr.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -23,45 +23,45 @@ jobs:
2323
run: |
2424
docker build -t temp:latest -f Dockerfile .
2525
26-
- name: Configure AWS credentials Prod
26+
- name: Configure AWS credentials Staging
2727
uses: aws-actions/configure-aws-credentials@v1.7.0
2828

2929
with:
30-
role-to-assume: arn:aws:iam::671250183987:role/GitHub2ECR # check terraform output
30+
role-to-assume: arn:aws:iam::992382665735:role/GitHub2ECR # check terraform output
3131

3232
role-session-name: GitHub_to_AWS_via_FederatedOIDC
3333
aws-region: us-east-1
3434

35-
- name: Login to Amazon ECR Prod
36-
id: login-ecr-management-prod
35+
- name: Login to Amazon ECR Staging
36+
id: login-ecr-management-staging
3737
uses: aws-actions/amazon-ecr-login@v2
3838

39-
- name: Tag and Push Image to Amazon ECR Prod
39+
- name: Tag and Push Image to Amazon ECR Staging
4040
env:
41-
ECR_REGISTRY: ${{ steps.login-ecr-management-prod.outputs.registry }}
41+
ECR_REGISTRY: ${{ steps.login-ecr-management-staging.outputs.registry }}
4242
ECR_REPOSITORY: ml-repository
4343
IMAGE_TAG: scholarag-${{ github.ref_name }}
4444
run: |
4545
docker tag temp:latest $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
4646
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
4747
docker tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG temp:latest
4848
49-
- name: Configure AWS credentials Staging
49+
- name: Configure AWS credentials Prod
5050
uses: aws-actions/configure-aws-credentials@v1.7.0
5151

5252
with:
53-
role-to-assume: arn:aws:iam::992382665735:role/GitHub2ECR # check terraform output
53+
role-to-assume: arn:aws:iam::671250183987:role/GitHub2ECR # check terraform output
5454

5555
role-session-name: GitHub_to_AWS_via_FederatedOIDC
5656
aws-region: us-east-1
5757

58-
- name: Login to Amazon ECR Staging
59-
id: login-ecr-management-staging
58+
- name: Login to Amazon ECR Prod
59+
id: login-ecr-management-prod
6060
uses: aws-actions/amazon-ecr-login@v2
6161

62-
- name: Tag and Push Image to Amazon ECR Staging
62+
- name: Tag and Push Image to Amazon ECR Prod
6363
env:
64-
ECR_REGISTRY: ${{ steps.login-ecr-management-staging.outputs.registry }}
64+
ECR_REGISTRY: ${{ steps.login-ecr-management-prod.outputs.registry }}
6565
ECR_REPOSITORY: ml-repository
6666
IMAGE_TAG: scholarag-${{ github.ref_name }}
6767
run: |

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
### Fixed
1616
- Limit query size.
1717
- Add OBI copyright.
18-
- Push to ECR prod+staging.
18+
- Push to ECR prod+staging
1919

2020
## [0.0.8] - 10.12.2024
2121

0 commit comments

Comments
 (0)