Skip to content

Commit

Permalink
Migrate components-integration-tests to Terraform (#892)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
yikaiMeta committed Apr 25, 2024
1 parent 3dcdbe4 commit 6df20ea
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/components-integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,17 @@ jobs:
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-west-1
role-to-assume: ${{ secrets.TF_AWS_ROLE_ARN }}
role-session-name: github-torchx
continue-on-error: true
- name: Configure Kube Config
env:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
run: |
set -eux
if [ -n "$AWS_ROLE_ARN" ]; then
aws eks update-kubeconfig --region=us-west-2 --name=${{ secrets.EKS_CLUSTER_NAME }}
fi
- name: Configure Docker
env:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
AWS_ROLE_ARN: ${{ secrets.TF_AWS_ROLE_ARN }}
run: |
set -eux
if [ -n "$AWS_ROLE_ARN" ]; then
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 495572122715.dkr.ecr.us-west-2.amazonaws.com
aws ecr get-login-password --region us-west-1 | docker login --username AWS --password-stdin 495572122715.dkr.ecr.us-west-1.amazonaws.com
fi
- name: Install dependencies
Expand All @@ -85,4 +77,4 @@ jobs:
env:
INTEGRATION_TEST_STORAGE: ${{ secrets.INTEGRATION_TEST_STORAGE }}
run: |
scripts/component_integration_tests.py --scheduler ${{ matrix.scheduler }} --container_repo "${{ matrix.container_repo || secrets.CONTAINER_REPO }}" ${{ matrix.extra_args }}
scripts/component_integration_tests.py --scheduler ${{ matrix.scheduler }} --container_repo "${{ matrix.container_repo || secrets.TF_CONTAINER_REPO }}" ${{ matrix.extra_args }}

0 comments on commit 6df20ea

Please sign in to comment.