Fix runner
Remote Deploy to Windows / deploy (push) Failing after 24s Details

This commit is contained in:
Windneiro 2026-03-31 15:17:18 +05:00
parent 0fc28e8102
commit 817e5082ea
2 changed files with 12 additions and 4 deletions

View File

@ -9,12 +9,15 @@ jobs:
container: container:
image: gitea/runner-images:ubuntu-latest image: gitea/runner-images:ubuntu-latest
options: --user root options: --user root
steps: steps:
- name: Fix Environment - name: Fix Networking and Environment
run: | run: |
echo "192.168.14.190 localhost" >> /etc/hosts
echo "HOME=/root" >> $GITHUB_ENV echo "HOME=/root" >> $GITHUB_ENV
echo "ACTIONS_CACHE_DIR=/tmp/cache" >> $GITHUB_ENV echo "ACTIONS_CACHE_DIR=/tmp/cache" >> $GITHUB_ENV
mkdir -p /tmp/cache
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -24,7 +27,12 @@ jobs:
mkdir -p /root/.ssh mkdir -p /root/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > /root/.ssh/id_ed25519 echo "${{ secrets.SSH_PRIVATE_KEY }}" > /root/.ssh/id_ed25519
chmod 600 /root/.ssh/id_ed25519 chmod 600 /root/.ssh/id_ed25519
echo "StrictHostKeyChecking no" >> /root/.ssh/config
cat <<EOF > /root/.ssh/config
Host *
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
EOF
- name: Run Ansible Playbook - name: Run Ansible Playbook
run: | run: |

View File

@ -5,4 +5,4 @@
- name: Copy backup scripts - name: Copy backup scripts
ansible.windows.win_copy: ansible.windows.win_copy:
src: ../scripts/ src: ../scripts/
dest: C:\CMD\ dest: 'C:\CMD\'