From 2fb3038850e4bf92634fc152c5dce143509db63c Mon Sep 17 00:00:00 2001 From: lukas Date: Thu, 27 Aug 2026 22:54:21 +0200 Subject: [PATCH] wip --- .gitea/workflows/ci.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 28b92f5..739a0af 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -84,25 +84,17 @@ jobs: run: | set -euo pipefail - echo "Testing DNS..." - getent hosts "$DEPLOY_HOST" - - echo "Testing SSH port..." - timeout 10 bash -c " ~/.ssh/deploy_key chmod 600 ~/.ssh/deploy_key - echo "Getting host key..." ssh-keyscan -p "${DEPLOY_PORT:-22}" -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts - echo "Testing SSH authentication..." + echo "Creating deployment directory if needed..." ssh -i ~/.ssh/deploy_key \ -p "${DEPLOY_PORT:-22}" \ "$DEPLOY_USER@$DEPLOY_HOST" \ - "echo 'SSH connection successful'" + "mkdir -p '$DEPLOY_PATH'" echo "Uploading compose file..." scp -i ~/.ssh/deploy_key \ @@ -118,6 +110,5 @@ jobs: IMAGE_TAG='$IMAGE_TAG' docker compose pull && \ IMAGE_TAG='$IMAGE_TAG' docker compose up -d && \ docker image prune -f" - - echo "Deployment successful!" +