From 87b44d07c66cace0e7ab6b6baa4b3ef7055e953f Mon Sep 17 00:00:00 2001 From: striker Date: Thu, 21 May 2026 03:28:53 +0300 Subject: [PATCH] ci: use SSH URL for git clone in deploy (drop GITEA_TOKEN) --- .gitea/workflows/deploy.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d2f896c..15673f2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -26,7 +26,7 @@ jobs: run: | ssh -i ~/.ssh/id_deploy striker@web.hhivp.com bash -s <<'REMOTE' set -euo pipefail - REPO_URL="https://${GITEA_USER}:${GITEA_TOKEN}@git.striker.su/striker/pushkinohistory-ru-v2.git" + REPO_URL="ssh://git@git.striker.su:2222/striker/pushkinohistory-ru-v2.git" DEPLOY_PATH="/opt/docker/sites/pushkinohistory-ru-v2" HEALTH_URL="http://127.0.0.1:4146/" @@ -49,6 +49,3 @@ jobs: curl -fsS -o /dev/null -w "HEALTH HTTP %{http_code}\n" "$HEALTH_URL" docker image prune -af --filter "until=168h" >/dev/null 2>&1 || true REMOTE - env: - GITEA_USER: striker - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}