File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : RMMT-API Image Build
2
+
3
+ on :
4
+ push :
5
+ branches : ["main"]
6
+ paths :
7
+ - ' ./**'
8
+ pull_request :
9
+ branches : ["main"]
10
+ paths :
11
+ - ' ./**'
12
+ workflow_dispatch :
13
+
14
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
15
+ permissions :
16
+ contents : read
17
+ pages : write
18
+ id-token : write
19
+
20
+ jobs :
21
+ build :
22
+ name : Build image and Deploy
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+
27
+ - uses : docker/login-action@v3
28
+ with :
29
+ username : ${{ vars.DOCKER_USERNAME }}
30
+ password : ${{ secrets.DOCKER_PAT_TOKEN }}
31
+
32
+ - name : Build and push api
33
+ working-directory : .
34
+ run : |
35
+ docker build . --file Dockerfile --tag ${{ vars.DOCKER_USERNAME }}/rmmt-api:latest
36
+ docker push ${{ vars.DOCKER_USERNAME }}/rmmt-api:latest
Original file line number Diff line number Diff line change 6
6
workers = 4
7
7
# 设置工作模式为协程
8
8
worker_class = "gevent"
9
- bind = "0.0.0.0:5001 "
9
+ bind = "0.0.0.0:5000 "
You can’t perform that action at this time.
0 commit comments