Skip to content

Commit 45f8739

Browse files
committed
update pipeline
1 parent c63da56 commit 45f8739

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ on:
1010
- '.github/workflows/build-and-deploy.yml'
1111

1212
env:
13-
AWS_REGION: us-east-1
14-
ECR_REPOSITORY: rimworld-hay-calc
15-
# This can be set in repo → Settings → Environments → prod → vars
16-
ECR_REGISTRY: ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ env.AWS_REGION }}.amazonaws.com
13+
AWS_REGION: ${{ vars.AWS_REGION }}
14+
ECR_REPOSITORY: ${{ vars.ECR_REPOSITORY }}
15+
ECR_REGISTRY: ${{ vars.AWS_ACCOUNT_ID }}.dkr.ecr.${{ vars.AWS_REGION }}.amazonaws.com
1716

1817
jobs:
1918
build:
@@ -30,7 +29,7 @@ jobs:
3029
- name: 🔐 Configure AWS credentials
3130
uses: aws-actions/configure-aws-credentials@v4
3231
with:
33-
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/GitHubOIDCDeploy
32+
role-to-assume: ${{ secrets.OIDC_ROLE_ARN }}
3433
aws-region: ${{ env.AWS_REGION }}
3534

3635
# ---------- ② Log in to ECR ----------

0 commit comments

Comments
 (0)