From 48c755d776785aab7d2d1b07dfbcbac7d2d6d1e8 Mon Sep 17 00:00:00 2001 From: Rustingheart Date: Sun, 20 Oct 2024 18:51:13 +0200 Subject: [PATCH] bf server_ip --- .github/workflows/deploy-infra-on-dst.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-infra-on-dst.yml b/.github/workflows/deploy-infra-on-dst.yml index 01d82e3..8078192 100644 --- a/.github/workflows/deploy-infra-on-dst.yml +++ b/.github/workflows/deploy-infra-on-dst.yml @@ -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" @@ -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