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 8bd92f7 commit 48c755d
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 @@ -28,7 +28,7 @@ jobs:
- name: Set up SSH with PEM private key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SECRET_DST_PRIVATE_KEY }}" > ~/.ssh/data_enginering_machine.pem
echo "${{ secrets.SECRET_SSH_KEY }}" > ~/.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 Down Expand Up @@ -57,6 +57,7 @@ jobs:
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
cat ~/.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 48c755d

Please sign in to comment.