deploy on gitea workflow #3

Merged
vbevdev merged 55 commits from experiment/runner into main 2026-07-04 16:20:41 +00:00
Showing only changes of commit c8fc8776fd - Show all commits
+5 -5
View File
@@ -96,10 +96,10 @@ jobs:
DEPLOY_LOG_FILE="/tmp/deploy-${REF_NAME}.log" DEPLOY_LOG_FILE="/tmp/deploy-${REF_NAME}.log"
nohup bash -c ' nohup bash -c "
sleep 5 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" \ curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage" \
--proxy "${PROXY_URL}" \ --proxy "${PROXY_URL}" \
-d "chat_id=${TELEGRAM_CHAT}" \ -d "chat_id=${TELEGRAM_CHAT}" \
@@ -115,11 +115,11 @@ jobs:
curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendDocument" \ curl -s -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendDocument" \
--proxy "${PROXY_URL}" \ --proxy "${PROXY_URL}" \
-F "chat_id=${TELEGRAM_CHAT}" \ -F "chat_id=${TELEGRAM_CHAT}" \
-F "document=@\${DEPLOY_LOG_FILE}" > /dev/null -F "document=@\$DEPLOY_LOG_FILE" > /dev/null
fi fi
rm -f \${DEPLOY_LOG_FILE} rm -f \$DEPLOY_LOG_FILE
' > /dev/null 2>&1 & " > /dev/null 2>&1 &
EOT EOT
echo "New containers will be started after 5 seconds" echo "New containers will be started after 5 seconds"