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

Commit 11f7dd2

Browse files
committed
fix private ip command
1 parent 13edab9 commit 11f7dd2

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

.github/workflows/benchmark_group_2.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,18 @@ jobs:
2828
- name: Get private IP address
2929
id: get-private-ip
3030
run: |
31-
aws ec2 describe-instances \
32-
--instance-id ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} \
33-
--query 'Reservations[0].Instances[0].NetworkInterfaces[?Attachment.DeviceIndex==`1`].PrivateIpAddress'
34-
echo "private-ip=$(aws ec2 describe-instances \
35-
--instance-id ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} \
36-
--query 'Reservations[0].Instances[0].NetworkInterfaces[?Attachment.DeviceIndex==`1`].PrivateIpAddress')"
3731
echo "private-ip=$(aws ec2 describe-instances \
3832
--instance-id ${{ steps.start-ec2-runner.outputs.ec2-instance-id }} \
39-
--query 'Reservations[0].Instances[0].NetworkInterfaces[?Attachment.DeviceIndex==`1`].PrivateIpAddress')" \
33+
--query 'Reservations[0].Instances[0].PrivateIpAddress')" \
4034
>> $GITHUB_OUTPUT
4135
run-server:
4236
name: Start the ISTZIIO server
4337
needs: start-runner # required to start the main job when the runner is ready
4438
runs-on: ${{ needs.start-runner.outputs.label }} # run the job on the newly created runner
4539
env:
4640
SERVER_ROOT: ${{ github.workspace }}/server
47-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
48-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
41+
AWS_ACCESS_KEY_ID: ${{ secrets.GROUP_2_AWS_ACCESS_KEY_ID }}
42+
AWS_SECRET_ACCESS_KEY: ${{ secrets.GROUP_2_AWS_SECRET_ACCESS_KEY }}
4943
SERVER_IP: ${{ needs.start-runner.outputs.private-ip }}
5044
steps:
5145
- name: debug

0 commit comments

Comments
 (0)