Skip to content

Commit 6df20ea

Browse files
authored
Migrate components-integration-tests to Terraform (#892)
* Update components-integration-tests.yaml test the aws_batch in components-integration-tests. * Update components-integration-tests.yaml * Update components-integration-tests.yaml * Update components-integration-tests.yaml * Update components-integration-tests.yaml * Update components-integration-tests.yaml * Update components-integration-tests.yaml
1 parent 3dcdbe4 commit 6df20ea

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/components-integration-tests.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,17 @@ jobs:
4242
- name: Configure AWS Credentials
4343
uses: aws-actions/[email protected]
4444
with:
45-
aws-region: us-west-2
46-
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
45+
aws-region: us-west-1
46+
role-to-assume: ${{ secrets.TF_AWS_ROLE_ARN }}
4747
role-session-name: github-torchx
4848
continue-on-error: true
49-
- name: Configure Kube Config
50-
env:
51-
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
52-
run: |
53-
set -eux
54-
if [ -n "$AWS_ROLE_ARN" ]; then
55-
aws eks update-kubeconfig --region=us-west-2 --name=${{ secrets.EKS_CLUSTER_NAME }}
56-
fi
5749
- name: Configure Docker
5850
env:
59-
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
51+
AWS_ROLE_ARN: ${{ secrets.TF_AWS_ROLE_ARN }}
6052
run: |
6153
set -eux
6254
if [ -n "$AWS_ROLE_ARN" ]; then
63-
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 495572122715.dkr.ecr.us-west-2.amazonaws.com
55+
aws ecr get-login-password --region us-west-1 | docker login --username AWS --password-stdin 495572122715.dkr.ecr.us-west-1.amazonaws.com
6456
fi
6557
6658
- name: Install dependencies
@@ -85,4 +77,4 @@ jobs:
8577
env:
8678
INTEGRATION_TEST_STORAGE: ${{ secrets.INTEGRATION_TEST_STORAGE }}
8779
run: |
88-
scripts/component_integration_tests.py --scheduler ${{ matrix.scheduler }} --container_repo "${{ matrix.container_repo || secrets.CONTAINER_REPO }}" ${{ matrix.extra_args }}
80+
scripts/component_integration_tests.py --scheduler ${{ matrix.scheduler }} --container_repo "${{ matrix.container_repo || secrets.TF_CONTAINER_REPO }}" ${{ matrix.extra_args }}

0 commit comments

Comments
 (0)