diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0d52cba..ffdd1dd 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -18,6 +18,12 @@ jobs: apt-get update apt-get install -y ansible + - name: Verify SSH key format + run: | + echo "File size: $(wc -c < ~/.ssh/id_ed25519) bytes" + echo "First line: $(head -n 1 ~/.ssh/id_ed25519)" + echo "Last line: $(tail -n 1 ~/.ssh/id_ed25519)" + - name: Set up SSH private key run: | mkdir -p ~/.ssh @@ -25,6 +31,12 @@ jobs: chmod 600 ~/.ssh/id_ed25519 echo -e "Host *\n\tStrictHostKeyChecking no\n" > ~/.ssh/config + - name: Verify SSH Key Format + run: | + echo "File size: $(wc -c < ~/.ssh/id_ed25519) bytes" + echo "First line: $(head -n 1 ~/.ssh/id_ed25519)" + echo "Last line: $(tail -n 1 ~/.ssh/id_ed25519)" + - name: Set up vault password run: | echo "${{ secrets.VAULT_PASSWORD }}" > ansible/vault_pass