From 667be5fa78fd1c02137a7d7ecac1b78febc78903 Mon Sep 17 00:00:00 2001 From: Nicolas Cantu Date: Wed, 10 Sep 2025 12:49:14 +0200 Subject: [PATCH] ci: add known_hosts and force SSH for git.4nkweb.com --- .gitea/workflows/dev.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml index b6ca0be..d26eee4 100644 --- a/.gitea/workflows/dev.yml +++ b/.gitea/workflows/dev.yml @@ -3,8 +3,6 @@ on: push: branches: - '*' - paths: - - '.ci/tag.env' jobs: build-and-push: runs-on: docker @@ -14,6 +12,14 @@ jobs: with: fetch-depth: 0 submodules: recursive + - name: Set up SSH agent + uses: webfactory/ssh-agent@v0.9.1 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Trust Gitea host and force SSH for git.4nkweb.com + run: | + ssh-keyscan -H git.4nkweb.com >> ~/.ssh/known_hosts + git config --global url.ssh://git@git.4nkweb.com/.insteadOf https://git.4nkweb.com/ - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Gitea Registry