16 Commits

Author SHA1 Message Date
b7afe430d3
ci(docker-publish): 确保仅在push事件时提交标签更新 (#22)
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
Gitea Sync / trigger-gitea-sync (push) Waiting to run
Java CI with Maven / build (push) Waiting to run
* ci(docker-publish): 确保仅在push事件时提交标签更新

* refactor(github-workflows): 标准化Gitea Sync workflow名称

* feat(cors): 全局启用CORS支持

在Spring应用中通过配置CORS实现跨域请求支持,允许所有来源、方法和头。
此变更有助于解决前端应用在不同域上运行时的跨域问题。
2024-08-28 21:13:59 +08:00
6e3ffa092b
reformat 格式化代码 (#21)
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
gitea-sync.yml / trigger-gitea-sync (push) Waiting to run
Java CI with Maven / build (push) Waiting to run
* reformat 格式化代码

* 为依赖图的生成添加写权限
2024-08-25 20:21:15 +08:00
8d10add577 feat(docker-publish): 从meta输出中提取版本用于镜像标签
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
gitea-sync.yml / trigger-gitea-sync (push) Waiting to run
2024-08-25 20:00:59 +08:00
6185381753 fix(github-actions):将权限从read更改为write
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
gitea-sync.yml / trigger-gitea-sync (push) Waiting to run
2024-08-25 19:41:39 +08:00
95e1173849 refactor(github-actions): 使用yq-action替换直接wget和优化依赖图提交
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
gitea-sync.yml / trigger-gitea-sync (push) Waiting to run
- 在docker-publish.yml中使用mikefarah/yq-action直接替换繁琐的wget和chmod命令,用于更新manifest。
-通过精确的路径监听在maven.yml中优化依赖图提交动作,以响应pom.xml和src/更改,提高效率。
2024-08-25 19:37:02 +08:00
8a9612bcb3 refactor(github-actions): 自动化提交镜像更新和Gitea同步工作流
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
gitea-sync.yml / trigger-gitea-sync (push) Waiting to run
Java CI with Maven / build (push) Waiting to run
- 在docker-publish.yml中引入yq Linux二进制文件并设置权限,用于在'push'事件中自动更新部署镜像标签。
- 用git-auto-commit-action自动化提交更新到GitHub,使用机器用户凭据。- 在gitea-sync.yml中增加workflow_run事件的类型限定,仅在'Docker Build and Publish'工作流完成时触发。
2024-08-25 19:32:28 +08:00
6bffefee2e feat(cicd):增加Workflow来更新部署镜像标签
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
gitea-sync.yml / trigger-gitea-sync (push) Waiting to run
Java CI with Maven / build (push) Waiting to run
2024-08-25 19:13:28 +08:00
f5efdf8bf4
Update gitea-sync.yml
Some checks are pending
Docker / build (push) Waiting to run
gitea-sync.yml / trigger-gitea-sync (push) Waiting to run
Java CI with Maven / build (push) Waiting to run
2024-08-25 11:45:24 +08:00
2734fb2227
Update gitea-sync.yml
Some checks are pending
Docker / build (push) Waiting to run
gitea-sync.yml / trigger-gitea-sync (push) Waiting to run
Java CI with Maven / build (push) Waiting to run
2024-08-25 11:42:46 +08:00
8fab21bc25
Merge pull request #20
* feat(github): 创建gitea-sync.yml工作流
2024-08-25 11:39:21 +08:00
1a53ffd83c
自动化构建docker镜像 (#19)
* feat(build): add Dockerfile

* feat(github-actions): 添加 Docker 镜像构建和发布工作流

* 删除maven的镜像配置
2024-08-25 02:09:50 +08:00
6c6ab8475c Revert "```javarefactor(maven): 将Java版本更新到21"
This reverts commit c080be00932a58228db28cbad61bbc9359c594ed.
2024-08-17 02:31:18 +08:00
c080be0093 ```javarefactor(maven): 将Java版本更新到21
更新CI工作流和pom.xml中的Java版本。此更改包括将GitHub Actions工作流中使用的JDK版本从17更新到21,
以及将pom.xml中定义的Java版本属性从17更新到21,以适应新的Java版本。
```
2024-08-17 02:28:45 +08:00
734960d031 fix(ci): 跳过测试并修复依赖图上传工作流在GitHub Actions工作流中,Maven打包步骤现在跳过测试以加快构建速度并避免不必要的依赖。此外,修复了上传依赖图的步骤,以确保其在构建过程中正确执行。 2024-08-17 02:06:05 +08:00
a8f39e2b0c feat(mapper): 添加 MpUserMapper 及用户插入测试
新增 MpUserMapper 接口,扩展自 Mybatis Plus 的 BaseMapper,用于 User 实体的数据库操作。在 UserMapperTest 中添加 testAddUser 方法以验证用户插入功能,使用 SQLite 数据库进行单元测试。
2024-08-16 22:51:06 +08:00
f23e9c2818
Create maven.yml (#8)
* Create maven.yml

* Update maven.yml

* Update maven.yml
2024-08-10 02:58:51 +08:00