feat: 修复打包错误 #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Compose Management | |
on: | |
push: | |
branches: [ "master" ] # 触发条件:推送到 main 分支 | |
workflow_dispatch: # 手动触发工作流 | |
jobs: | |
manage_containers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v2 | |
- name: Set up Docker Compose | |
uses: docker/setup-buildx-action@v2 | |
- name: Start environment services | |
run: | | |
docker-compose -f docker-compose.env.yml up -d | |
env: | |
COMPOSE_FILE: docker-compose.env.yml | |
- name: List Docker images | |
run: docker images | |
- name: List Container | |
run: docker ps -a | |
- name: List Running Container | |
run: docker ps |