File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to Docker Hub
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main # Change to your deployment branch
7
+
8
+ jobs :
9
+ build-and-push :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Set up QEMU
17
+ uses : docker/setup-qemu-action@v2
18
+
19
+ - name : Set up Docker Buildx
20
+ uses : docker/setup-buildx-action@v2
21
+
22
+ - name : Log in to Docker Hub
23
+ uses : docker/login-action@v2
24
+ with :
25
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
26
+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
27
+
28
+ - name : Build and push Docker image
29
+ uses : docker/build-push-action@v4
30
+ with :
31
+ context : .
32
+ platforms : linux/amd64
33
+ push : true
34
+ tags : seanyl/wese:latest
Original file line number Diff line number Diff line change 19
19
You can directly visit the following website to use the tool
20
20
https://wese-app.onrender.com
21
21
22
- ## Locally development
22
+ ## Locally Development
23
23
Install the necessary package
24
24
``` bash
25
25
pip install -r requirements.txt
@@ -30,6 +30,17 @@ before deployment, you need to test by running
30
30
gunicorn app:server
31
31
```
32
32
33
+ ## Docker Manually Deployment
34
+ Rebuild the Docker Image
35
+ ``` bash
36
+ docker buildx build --platform linux/amd64 -t seanyl/wese:latest .
37
+ ```
38
+
39
+ Push the image to docker hub
40
+ ```
41
+ docker push seanyl/wese:latest
42
+ ```
43
+
33
44
# License
34
45
The software is available under the MIT license.
35
46
You can’t perform that action at this time.
0 commit comments