-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
217 changed files
with
16,229 additions
and
9,852 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Deploy to Cloud Server | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
service: | ||
description: "Select the service to deploy" | ||
required: true | ||
type: choice | ||
options: | ||
- api | ||
- user | ||
- classroom | ||
- course | ||
- launch_screen | ||
- paper | ||
- academic | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to Alibaba Cloud Docker Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ secrets.ALIYUN_DOCKER_REGISTRY }} | ||
username: ${{ secrets.ALIYUN_DOCKER_USER }} | ||
password: ${{ secrets.ALIYUN_DOCKER_PASSWORD }} | ||
|
||
- name: Build and Push Docker Image | ||
run: | | ||
cd $GITHUB_WORKSPACE && bash ./hack/image-build-and-push.sh ${{ github.event.inputs.service }} | ||
- name: SSH and deploy on server | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SERVER_IP }} | ||
username: ${{ secrets.SERVER_USER }} | ||
key: ${{ secrets.SERVER_SSH_KEY }} | ||
script: | | ||
cd ~/hack | ||
bash docker-run.sh ${{ github.event.inputs.service }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// Code generated by hz. DO NOT EDIT. | ||
|
||
hz version: v0.9.1 | ||
handlerDir: ./api/handler | ||
modelDir: ./api/model | ||
routerDir: ./api/router |
Validating CODEOWNERS rules …
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# 这个文件列出了本项目的主要维护者,以及所负责的模块。 | ||
# | ||
# 注释格式: 加入工作室年份-维护者姓名 <电子邮件地址> (维护者用户名) | ||
# 文本格式: 模块路径 @维护者用户名1 @维护者用户名2 ... | ||
|
||
## Root | ||
# 2023-李梓玄 <[email protected]> (@jiuxia211) | ||
# 2022-林黄骁 <[email protected]> (@ozline) | ||
|
||
* @west2-online/fzuhelper @jiuxia211 @ozline | ||
|
||
|
||
## CI | ||
# 2024-朱胤帆 <[email protected]> (@SchwarzSail) | ||
|
||
/.github @SchwarzSail | ||
|
||
|
||
## pkg | ||
# 2024-马奔 <[email protected]> (@mutezebra) | ||
# 2022-林黄骁 <[email protected]> (@ozline) | ||
|
||
/pkg @mutezebra @ozline | ||
|
||
|
||
# ======== 以下为各模块的负责人 ======== | ||
|
||
## cmd/academic | ||
# 2023-李梓玄 <[email protected]> (@jiuxia211) | ||
|
||
/cmd/academic @jiuxia211 | ||
/internal/academic @jiuxia211 | ||
|
||
|
||
## cmd/course | ||
# 2024-任宝硕 <[email protected]> (@renbaoshuo) | ||
|
||
/cmd/course @renbaoshuo | ||
/internal/course @renbaoshuo | ||
|
||
|
||
## cmd/classroom | ||
# 2024-朱胤帆 <[email protected]> (@SchwarzSail) | ||
|
||
/cmd/classroom @SchwarzSail | ||
/internal/classroom @SchwarzSail | ||
|
||
|
||
## cmd/launch_screen | ||
# 2024-肖垲 <[email protected]> (@FantasyRL) | ||
|
||
/cmd/launch_screen @FantasyRL | ||
/internal/launch_screen @FantasyRL | ||
|
||
|
||
## cmd/paper | ||
# 2024-庄仲华 <[email protected]> (@penqee) | ||
|
||
/cmd/paper @penqee | ||
/internal/paper @penqee | ||
|
||
|
||
## cmd/user | ||
# 2023-李梓玄 <[email protected]> (@jiuxia211) | ||
|
||
/cmd/user @jiuxia211 | ||
/internal/user @jiuxia211 | ||
|
||
|
||
## cmd/exam | ||
# 2024-马奔 <[email protected]> (@mutezebra) | ||
|
||
/cmd/exam @mutezebra | ||
/internal/exam @mutezebra |
This file was deleted.
Oops, something went wrong.
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
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
7 changes: 4 additions & 3 deletions
7
cmd/api/biz/handler/api/academic_service.go → api/handler/api/academic_service.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
...api/biz/handler/api/class_room_service.go → api/handler/api/class_room_service.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
cmd/api/biz/handler/api/course_service.go → api/handler/api/course_service.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
.../biz/handler/api/launch_screen_service.go → api/handler/api/launch_screen_service.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 4 additions & 3 deletions
7
cmd/api/biz/handler/api/paper_service.go → api/handler/api/paper_service.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.