From be16c1aadbfccb9dc84a7f721448b372a7c49b50 Mon Sep 17 00:00:00 2001 From: lukas Date: Thu, 27 Aug 2026 23:04:24 +0200 Subject: [PATCH] wip --- .gitea/workflows/ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 739a0af..e51301a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -90,25 +90,23 @@ jobs: ssh-keyscan -p "${DEPLOY_PORT:-22}" -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts - echo "Creating deployment directory if needed..." ssh -i ~/.ssh/deploy_key \ -p "${DEPLOY_PORT:-22}" \ "$DEPLOY_USER@$DEPLOY_HOST" \ "mkdir -p '$DEPLOY_PATH'" - echo "Uploading compose file..." scp -i ~/.ssh/deploy_key \ -P "${DEPLOY_PORT:-22}" \ docker-compose.prod.yml \ "$DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_PATH/docker-compose.yml" - echo "Deploying..." ssh -i ~/.ssh/deploy_key \ -p "${DEPLOY_PORT:-22}" \ "$DEPLOY_USER@$DEPLOY_HOST" \ "cd '$DEPLOY_PATH' && \ - IMAGE_TAG='$IMAGE_TAG' docker compose pull && \ - IMAGE_TAG='$IMAGE_TAG' docker compose up -d && \ - docker image prune -f" + IMAGE_TAG='$IMAGE_TAG' sudo docker compose pull && \ + IMAGE_TAG='$IMAGE_TAG' sudo docker compose up -d && \ + sudo docker image prune -f" +