Spaces:
Sleeping
Sleeping
VenkateshRoshan
commited on
Commit
·
d2574da
1
Parent(s):
ac81936
deploy file updated
Browse files
.github/workflows/deploy.yml
CHANGED
@@ -35,9 +35,9 @@ jobs:
|
|
35 |
- name: Setup SSH Key
|
36 |
run: |
|
37 |
mkdir -p ~/.ssh
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
# check via ssh if the key is working
|
43 |
- name: Check SSH Connection
|
|
|
35 |
- name: Setup SSH Key
|
36 |
run: |
|
37 |
mkdir -p ~/.ssh
|
38 |
+
echo "${{ secrets.EC2_PRIVATE_KEY }}" > ~/.ssh/private_key
|
39 |
+
chmod 600 ~/.ssh/private_key
|
40 |
+
ssh-keyscan -H ${{ secrets.EC2_HOST }} >> ~/.ssh/known_hosts
|
41 |
|
42 |
# check via ssh if the key is working
|
43 |
- name: Check SSH Connection
|