Skip to content

Commit

Permalink
upgrade aws credential configuration, utilize variable accound id
Browse files Browse the repository at this point in the history
  • Loading branch information
ndharasz committed May 13, 2024
1 parent b401d31 commit da2aa3e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-3-10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@ jobs:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2

- name: Build and Push Docker Image
run: make push_latest_3_10
run: ACCOUNT_ID=${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }} make push_latest_3_10

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2

- name: Build and Push Docker Image
run: make push_latest_3_10
run: ACCOUNT_ID=${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }} make push_latest_3_10
8 changes: 4 additions & 4 deletions .github/workflows/deploy-3-11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@ jobs:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2

- name: Build and Push Docker Image
run: make push_latest_3_11
run: ACCOUNT_ID=${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }} make push_latest_3_11

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2

- name: Build and Push Docker Image
run: make push_latest_3_11
run: ACCOUNT_ID=${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }} make push_latest_3_11
8 changes: 4 additions & 4 deletions .github/workflows/deploy-3-9.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,19 @@ jobs:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2

- name: Build and Push Docker Image
run: make push_latest_3_9
run: ACCOUNT_ID=${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }} make push_latest_3_9

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2

- name: Build and Push Docker Image
run: make push_latest_3_9
run: ACCOUNT_ID=${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }} make push_latest_3_9
16 changes: 8 additions & 8 deletions .github/workflows/push-docker-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2
Expand All @@ -60,7 +60,7 @@ jobs:
run: make push_stable_3_9

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2
Expand Down Expand Up @@ -107,7 +107,7 @@ jobs:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2
Expand All @@ -116,7 +116,7 @@ jobs:
run: make push_stable_3_10

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2
Expand Down Expand Up @@ -163,19 +163,19 @@ jobs:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2

- name: Build and Push Docker Image
run: make push_stable_3_11
run: ACCOUNT_ID=${{ secrets.NUMERAI_CLOUD_ACCOUNT_ID }} make push_stable_3_11

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }}:role/github-actions
aws-region: us-west-2

- name: Build and Push Docker Image
run: make push_latest_3_11
run: ACCOUNT_ID=${{ secrets.MODEL_UPLOADS_ACCOUNT_ID }} make push_latest_3_11
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
NAME := numerai_predict
ECR_REPO := 584380190766.dkr.ecr.us-west-2.amazonaws.com
ECR_REPO := ${ACCOUNT_ID}.dkr.ecr.us-west-2.amazonaws.com
GIT_REF := $$(git rev-parse --short HEAD)
.DEFAULT_GOAL := help

Expand Down

0 comments on commit da2aa3e

Please sign in to comment.