Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fix private ip command
Browse files Browse the repository at this point in the history
  • Loading branch information
J-HowHuang committed Apr 25, 2024
1 parent 13edab9 commit 11f7dd2
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/benchmark_group_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,18 @@ jobs:
- name: Get private IP address
id: get-private-ip
run: |
aws ec2 describe-instances \
--instance-id ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} \
--query 'Reservations[0].Instances[0].NetworkInterfaces[?Attachment.DeviceIndex==`1`].PrivateIpAddress'
echo "private-ip=$(aws ec2 describe-instances \
--instance-id ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} \
--query 'Reservations[0].Instances[0].NetworkInterfaces[?Attachment.DeviceIndex==`1`].PrivateIpAddress')"
echo "private-ip=$(aws ec2 describe-instances \
--instance-id ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} \
--query 'Reservations[0].Instances[0].NetworkInterfaces[?Attachment.DeviceIndex==`1`].PrivateIpAddress')" \
--query 'Reservations[0].Instances[0].PrivateIpAddress')" \
>> $GITHUB_OUTPUT
run-server:
name: Start the ISTZIIO server
needs: start-runner # required to start the main job when the runner is ready
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
env:
SERVER_ROOT: ${{ github.workspace }}/server
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.GROUP_2_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.GROUP_2_AWS_SECRET_ACCESS_KEY }}
SERVER_IP: ${{ needs.start-runner.outputs.private-ip }}
steps:
- name: debug
Expand Down

0 comments on commit 11f7dd2

Please sign in to comment.