From f57c91589f7c803a173a66ffdf7fa74ab0e31aee Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Fri, 27 Mar 2026 10:40:26 +0200 Subject: [PATCH] fix: Setup SSH before checkout for submodule clone Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index e2b984c..9b5cfe3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -12,15 +12,16 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - submodules: true - name: Setup SSH run: | mkdir -p ~/.ssh && chmod 700 ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -p 2222 gitea-ssh.agiliton.internal >> ~/.ssh/known_hosts 2>/dev/null || true ssh-keyscan -H ${{ env.TARGET_VM }} >> ~/.ssh/known_hosts 2>/dev/null || true + - uses: actions/checkout@v4 + with: + submodules: true - name: Login & Build & Push run: | echo "${{ secrets.REGISTRY_TOKEN }}" | docker login ${{ env.REGISTRY }} -u christian --password-stdin