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 fd92c23 commit 816bdb2
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/deploy-infra-on-dst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,7 @@ jobs:
SERVER_IP=$(grep -A 3 -E '^variable "server_ip"' infra/terraform/variables.tf | grep 'default' | sed -n 's/.*default *= *"\([^"]*\)".*/\1/p')
echo "Extracted Server IP: ${SERVER_IP}"
echo "SERVER_IP=${SERVER_IP}" >> $GITHUB_ENV # Set it as an environment variable
echo "server_ip=${SERVER_IP}" >> $GITHUB_ENV # Use a different output name if necessary
# Debug
- name: Debug
run: |
echo "Private Key:"
cat ~/.ssh/id_rsa.pem || true
echo "Known hosts:"
cat ~/.ssh/known_hosts || true
echo "server_ip=${SERVER_IP}" >> $GITHUB_ENV # Use a different output name if necessary
# Step 3: Set up SSH using the PEM private key
- name: Set up SSH with PEM private key
Expand All @@ -48,6 +39,14 @@ jobs:
exit 1
}
# Debug
- name: Debug
run: |
echo "Private Key:"
cat ~/.ssh/data_enginering_machine.pem || true
echo "Known hosts:"
cat ~/.ssh/known_hosts || true
# Print the current known_hosts
- name: Show known_hosts
run: cat ~/.ssh/known_hosts
Expand Down

0 comments on commit 816bdb2

Please sign in to comment.