refactor: 移除旧的命令处理文件,整合初始化逻辑到 main.go #20
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: MediaWarp DEV | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
env: | |
APP_NAME: MediaWarp | |
jobs: | |
get-version: | |
runs-on: ubuntu-latest | |
outputs: | |
app_version: ${{ steps.get-version.outputs.app_version }} | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: APP Version | |
id: get-version | |
run: | | |
APP_VERSION=DEV-$(date +'%Y.%m.%d')-$(git rev-parse --short HEAD) | |
echo "测试APP版本号:$APP_VERSION" | |
echo "app_version=$APP_VERSION" >> "$GITHUB_OUTPUT" | |
docker-builder: | |
name: Docker Image Builder | |
needs: get-version | |
uses: ./.github/workflows/docker-builder.yaml | |
with: | |
APP_VERSION: ${{ needs.get-version.outputs.app_version }} | |
IS_LATEST: false | |
secrets: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | |
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
binary-builder: | |
name: Binary Image Builder | |
needs: get-version | |
uses: ./.github/workflows/binary-builder.yaml | |
with: | |
APP_VERSION: ${{ needs.get-version.outputs.app_version }} |