deploy-workflow: create docker compose file
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6s

This commit is contained in:
2026-07-04 17:14:40 +03:00
parent feaf427969
commit c8fc8776fd
+5 -5
View File
@@ -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"