From c8fc8776fd56723c8a7465d2fe7f08ef3ca2fdca Mon Sep 17 00:00:00 2001 From: vbevdev Date: Sat, 4 Jul 2026 17:14:40 +0300 Subject: [PATCH] deploy-workflow: create docker compose file --- .gitea/workflows/deploy.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index b436918..72d08df 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -96,10 +96,10 @@ jobs: DEPLOY_LOG_FILE="/tmp/deploy-${REF_NAME}.log" - nohup bash -c ' + nohup bash -c " sleep 5 - if docker compose --dry-run -f "docker-compose-${REF_NAME}.yml" up -d --remove-orphans > \${DEPLOY_LOG_FILE} 2>&1; then + if docker compose --dry-run -f "docker-compose-${REF_NAME}.yml" up -d --remove-orphans > \$DEPLOY_LOG_FILE 2>&1; then curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage" \ --proxy "${PROXY_URL}" \ -d "chat_id=${TELEGRAM_CHAT}" \ @@ -115,11 +115,11 @@ jobs: curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendDocument" \ --proxy "${PROXY_URL}" \ -F "chat_id=${TELEGRAM_CHAT}" \ - -F "document=@\${DEPLOY_LOG_FILE}" > /dev/null + -F "document=@\$DEPLOY_LOG_FILE" > /dev/null fi - rm -f \${DEPLOY_LOG_FILE} - ' > /dev/null 2>&1 & + rm -f \$DEPLOY_LOG_FILE + " > /dev/null 2>&1 & EOT echo "New containers will be started after 5 seconds" \ No newline at end of file