bruhhhh
This commit is contained in:
@@ -60,7 +60,6 @@ jobs:
|
||||
echo "${{ secrets.ROOF_UNIT_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
|
||||
# This block must be written BEFORE ssh-keyscan is called.
|
||||
echo "Writing the scripture of connection (~/.ssh/config)..."
|
||||
echo "Host roof-unit" > ~/.ssh/config
|
||||
echo " HostName ${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/config
|
||||
@@ -71,8 +70,9 @@ jobs:
|
||||
echo " MACs +hmac-sha1" >> ~/.ssh/config
|
||||
echo " PubkeyAcceptedAlgorithms +ssh-rsa" >> ~/.ssh/config
|
||||
|
||||
echo "Performing the Rite of Keyscan..."
|
||||
ssh-keyscan -t rsa -H "${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/known_hosts
|
||||
# --- RITE OF IMPLANTATION ---
|
||||
echo "Implanting the known host key from Gitea secrets..."
|
||||
echo "${{ secrets.ROOF_UNIT_KNOWN_HOSTS_ENTRY }}" >> ~/.ssh/known_hosts
|
||||
|
||||
- name: 3. Execute Deployment Ritual
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user