Public Access
feat: update deploy workflow to enhance SSH key handling and add git status checks
This commit is contained in:
1 parent
aeed804460
commit
10ce58fdfe
2 files changed
+8
-2
No files matched your search
@@ -20,8 +20,9 @@ jobs:
|
||||
|
||||
- name: Write SSH Key
|
||||
run: |
|
||||
echo "${{ secrets.ANSIBLE_SSH_KEY }}" | base64 -d > /tmp/ansible_key
|
||||
printf '%s' "${{ secrets.ANSIBLE_SSH_KEY }}" | tr -d '\r\n' | base64 -d > /tmp/ansible_key
|
||||
chmod 600 /tmp/ansible_key
|
||||
ssh-keygen -l -f /tmp/ansible_key
|
||||
|
||||
- name: Write Inventory
|
||||
# StrictHostKeyChecking=no is intentional for a known home-network host.
|
||||
|
||||
Reference in new issue
Block a user