Skip to content

Commit

Permalink
bf server_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustingheart committed Oct 20, 2024
1 parent 307aadc commit 8bd92f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-infra-on-dst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SECRET_DST_PRIVATE_KEY }}" > ~/.ssh/data_enginering_machine.pem
chmod 600 ~/.ssh/data_enginering_machine.pem
chmod 400 ~/.ssh/data_enginering_machine.pem
SERVER_IP=${{ env.SERVER_IP }} # Access the environment variable set earlier
echo "Extracted Server IP: $SERVER_IP"
Expand All @@ -56,6 +56,7 @@ jobs:
run: |
SERVER_IP=${{ env.SERVER_IP }} # Access the environment variable set earlier
echo "Copying script to server with IP: $SERVER_IP"
ls -l ~/.ssh/data_enginering_machine.pem
scp -i ~/.ssh/data_enginering_machine.pem -o StrictHostKeyChecking=no infra/scripts/deploy-on-dst.sh ubuntu@$SERVER_IP:/home/ubuntu/
# Step 5: Run script via SSH
Expand Down

0 comments on commit 8bd92f7

Please sign in to comment.