Skip to content

Commit 9cd2093

Browse files
committed
add batch creds to secrets
1 parent 5f204a9 commit 9cd2093

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
pull_request:
99

1010
env:
11-
# TODO: double check these values
1211
AWS_REGION: us-west-2
1312
AWS_ACCOUNT_ID: 771753870375
1413
ECR_REPOSITORY: cellpack-private
@@ -26,12 +25,11 @@ jobs:
2625
with:
2726
fetch-depth: 0 # needed to pull history and tags
2827

29-
- name: Configure AWS credentials with Batch
30-
# TODO: The role must have the necessary permissions to perform the actions in the target account.
31-
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722
32-
with:
33-
role-to-assume: arn:aws:iam::${{ env.AWS_ACCOUNT_ID }}:role/batch
34-
role-session-name: cellpack-ecr
28+
- name: Configure AWS credentials
29+
uses: aws-actions/configure-aws-credentials@v2
30+
with:
31+
aws-access-key-id: ${{ secrets.AWS_BATCH_ACCESS_KEY_ID }}
32+
aws-secret-access-key: ${{ secrets.AWS_BATCH_SECRET_ACCESS_KEY }}
3533
aws-region: ${{ env.AWS_REGION }}
3634

3735
- name: Set up Docker Buildx

0 commit comments

Comments
 (0)