Improved the organization and clarity of error handling in main.py by consolidating exception management and refining error messages, particularly in asynchronous functions.
39 lines
No EOL
910 B
YAML
39 lines
No EOL
910 B
YAML
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 |