refactor: enhance error handling structure in main.py
Improved the organization and clarity of error handling in main.py by consolidating exception management and refining error messages, particularly in asynchronous functions.
This commit is contained in:
parent
cb4935fb42
commit
3c66504fb5
1 changed files with 39 additions and 0 deletions
39
.github/workflows/docker-build.yml
vendored
Normal file
39
.github/workflows/docker-build.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name: Docker Build & Compose Validation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
docker_build:
|
||||
name: Build Docker Image
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU (for multi-platform builds)
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build --file Dockerfile --tag telegram-mcp-server:ci .
|
||||
|
||||
docker_compose:
|
||||
name: Build & Validate Docker Compose
|
||||
runs-on: ubuntu-latest
|
||||
needs: docker_build
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Validate Compose file syntax
|
||||
run: docker compose config
|
||||
|
||||
- name: Build Compose services
|
||||
run: docker compose build
|
||||
Loading…
Reference in a new issue