Animo-Server/.gitea/workflows/auto-build.yaml
Grand-cocoa 38cbff11b3
Some checks failed
Auto-build / Automatic-Packaging (push) Failing after 4m57s
build: 配置生产环境构建与Docker部署- 添加Gitea自动构建工作流配置
- 配置Maven多环境Profile支持(dev/prod)
- 移除spring-boot-docker-compose依赖
- 配置Docker镜像构建与运行环境
- 设置JDK17运行环境与CDS优化
- 配置资源文件过滤规则
- 指定构建输出目录与源码路径
- 启用Spring Profile动态配置替换
2025-11-12 11:30:15 +08:00

24 lines
689 B
YAML

name: Auto-build
run-name: Automatic-Packaging 📦
on: [ push ]
env:
BARE_REPO_DIR: https://git.alina-dace.info/Dace/Animo-Server.git
CLONED_REPO_DIR: ./
jobs:
Automatic-Packaging:
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repo
uses: https://git.alina-dace.info/actions/checkout@v4
- run: pwd
- name: Set up JDK 17
uses: https://git.alina-dace.info/actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- run: chmod +x ./mvnw
- name: build
run: ./mvnw clean package -DskipTests=true -P prod
- run: docker build -t animo-server:latest ./