Skip to content

Commit bae95ad

Browse files
authored
Merge pull request #61 from 2024-capstone-project/deploy
Test CI/CD Pipeline
2 parents 38c7a8c + 24163f7 commit bae95ad

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,9 @@ jobs:
1616
- name: Set up SSH key from base64 secret
1717
run: |
1818
mkdir -p ~/.ssh
19-
cat <<EOF | base64 -d > ~/.ssh/id_rsa
20-
${{ secrets.EC2_SSH_KEY_B64 }}
21-
EOF
19+
echo -n "${{ secrets.EC2_SSH_KEY }}" | base64 -d > ~/.ssh/id_rsa
2220
chmod 600 ~/.ssh/id_rsa
23-
24-
#run: |
25-
# mkdir -p ~/.ssh
26-
# echo "${{ secrets.EC2_SSH_KEY }}" | base64 -d > ~/.ssh/id_rsa
27-
# chmod 600 ~/.ssh/id_rsa
28-
# ssh-keyscan -H 3.36.4.163 >> ~/.ssh/known_hosts
21+
ssh-keyscan -H 3.36.4.163 >> ~/.ssh/known_hosts
2922

3023

3124
- name: Run deploy.sh on EC2

0 commit comments

Comments
 (0)