diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index f1ebc62..8bee370 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -3,7 +3,7 @@ name: 构建并部署到测试环境(无 SSH) on: push: branches: - - main + - Iteration/7-11 - dev - test @@ -30,7 +30,7 @@ jobs: - name: 设置镜像标签 id: tag run: | - if [ "${{ github.ref }}" = "refs/heads/main" ]; then + if [ "${{ github.ref }}" = "refs/heads/Iteration/7-11" ]; then echo "tag=latest" >> $GITHUB_OUTPUT elif [ "${{ github.ref }}" = "refs/heads/dev" ]; then echo "tag=dev" >> $GITHUB_OUTPUT @@ -61,8 +61,8 @@ jobs: docker push ${{ env.WORKER_IMAGE }}:${{ steps.tag.outputs.tag }} docker push ${{ env.WORKER_IMAGE }}:${{ github.sha }} - - name: 部署到本地(仅 main 分支) - if: github.ref == 'refs/heads/main' + - name: 部署到本地(仅 Iteration/7-11 分支) + if: github.ref == 'refs/heads/Iteration/7-11' run: | # 确保部署目录存在(仅需日志目录,配置已嵌入二进制文件) mkdir -p ${{ env.DEPLOY_DIR }}/logs