You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,27 @@
10
10
Welcome to the Rust API Server! This server provides a simple REST interface for your applications. This README will
11
11
guide you through setting up and running the server, as well as configuring its various options.
12
12
13
+
## Deploy
14
+
**Automated Builds:**
15
+
Builds are automatically generated for each commit to the repository in the `main` branch and are subsequently pushed to Docker Hub. Tags are applied using the commit SHA, branch name, and the latest tag if released on the main branch. You can find a list of available tags [here](https://hub.docker.com/r/thuan2172001/rust-server/tags).
16
+
17
+
**Release Binaries:**
18
+
For every release, separate `cli` binaries are built. These binaries can be downloaded from [here](https://github.com/sonntuet1997/rust-web-api-microservice-template/releases) and are available for various operating systems and architectures. You are welcome to use the automated binaries or build your own.
19
+
20
+
**Contributions and PRs:**
21
+
If you submit a pull request, please note that images are not built by default. A maintainer will need to retag them for the build process to take place.
22
+
23
+
### Docker
24
+
1. Pull the docker image
25
+
```commit to only the main branch
26
+
docker pull thuan2172001/rust-server:latest
27
+
```
28
+
29
+
2. Run the image
30
+
```
31
+
docker run -d -p 8000:8000 thuan2172001/rust-server:latest
32
+
```
33
+
13
34
## How To Run
14
35
15
36
To get started, execute the following command in your terminal:
0 commit comments