bruhhh
This commit is contained in:
@@ -55,12 +55,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Preparing the sacred keys and crypto-litany for SSH communion..."
|
echo "Preparing the sacred keys and crypto-litany for SSH communion..."
|
||||||
mkdir -p ~/.ssh/
|
mkdir -p ~/.ssh/
|
||||||
|
chmod 700 ~/.ssh/
|
||||||
|
|
||||||
echo "${{ secrets.ROOF_UNIT_SSH_KEY }}" > ~/.ssh/id_rsa
|
echo "${{ secrets.ROOF_UNIT_SSH_KEY }}" > ~/.ssh/id_rsa
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
ssh-keyscan -H "${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/known_hosts
|
# This block must be written BEFORE ssh-keyscan is called.
|
||||||
|
echo "Writing the scripture of connection (~/.ssh/config)..."
|
||||||
# This block now correctly writes all options to ~/.ssh/config
|
|
||||||
echo "Host roof-unit" > ~/.ssh/config
|
echo "Host roof-unit" > ~/.ssh/config
|
||||||
echo " HostName ${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/config
|
echo " HostName ${{ secrets.ROOF_UNIT_HOSTNAME }}" >> ~/.ssh/config
|
||||||
echo " User ${{ secrets.ROOF_UNIT_USER }}" >> ~/.ssh/config
|
echo " User ${{ secrets.ROOF_UNIT_USER }}" >> ~/.ssh/config
|
||||||
@@ -70,6 +71,9 @@ jobs:
|
|||||||
echo " MACs +hmac-sha1" >> ~/.ssh/config
|
echo " MACs +hmac-sha1" >> ~/.ssh/config
|
||||||
echo " PubkeyAcceptedAlgorithms +ssh-rsa" >> ~/.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
|
||||||
|
|
||||||
- name: 3. Execute Deployment Ritual
|
- name: 3. Execute Deployment Ritual
|
||||||
run: |
|
run: |
|
||||||
echo "Initiating deployment sequence..."
|
echo "Initiating deployment sequence..."
|
||||||
|
|||||||
Reference in New Issue
Block a user