Skip to content

Commit

Permalink
Windows Nightly CI
Browse files Browse the repository at this point in the history
Signed-off-by: Shveta Sachdeva <[email protected]>
  • Loading branch information
sshveta committed Jan 21, 2025
1 parent e6c2a1b commit 0056398
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/provision-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ jobs:
run: |
EC2_INSTANCE_ID="${{ steps.ec2.outputs.ec2-instance-id }}"
EC2_INSTANCE_ID=$(echo $EC2_INSTANCE_ID | sed 's/^\[\(.*\)\]$/\1/')
ec2-host=$(aws ec2 describe-instances --instance-ids $EC2_INSTANCE_ID --query "Reservations[0].Instances[0].PublicIpAddress" --output text)
EC2_HOST=$(aws ec2 describe-instances --instance-ids $EC2_INSTANCE_ID --query "Reservations[0].Instances[0].PublicIpAddress" --output text)
echo "EC2 Host: $EC2_HOST"
echo "ec2-host=$EC2_HOST" >> $GITHUB_ENV
- name: Output EC2 Instance ID
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows-nightly-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
sshpass -p ${EC2_PASSWORD} ssh -o StrictHostKeyChecking=no ${EC2_USER}@${EC2_HOST} 'powershell -Command "Start-Process -FilePath C:\\Users\\nonadmin\\execute-tests.bat -NoNewWindow -Wait"'
env:
EC2_USER: nonadmin
EC2_HOST: ${{ needs.start-ec2-instance.outputs.ec2-host }}
EC2_HOST: ${{ env.ec2-host }}
EC2_PASSWORD: ${{ secrets.NONADMIN_PASSWORD }}

stop-ec2-instance:
Expand Down

0 comments on commit 0056398

Please sign in to comment.