build on dev and make thread count and queue size configurable
This commit is contained in:
commit
78304cb589
2 changed files with 29 additions and 1 deletions
15
.github/workflows/dev.yml
vendored
Normal file
15
.github/workflows/dev.yml
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
name: Build and push the dev image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ dev ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call-build-and-push:
|
||||||
|
name: Trigger container build and push
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
id-token: write
|
||||||
|
packages: write
|
||||||
|
uses: ./.github/workflows/build-and-push.yml
|
||||||
|
secrets: inherit
|
|
@ -6,5 +6,18 @@ fn main() {
|
||||||
let listen_at = env::args()
|
let listen_at = env::args()
|
||||||
.nth(1)
|
.nth(1)
|
||||||
.unwrap_or_else(|| "127.0.0.1:8080".to_string());
|
.unwrap_or_else(|| "127.0.0.1:8080".to_string());
|
||||||
server::start_server(&listen_at, 10, 4);
|
|
||||||
|
let queue_size = env::args()
|
||||||
|
.nth(2)
|
||||||
|
.unwrap_or_else(|| "10".to_string())
|
||||||
|
.parse::<usize>()
|
||||||
|
.unwrap();;
|
||||||
|
|
||||||
|
let thread_count = env::args()
|
||||||
|
.nth(3)
|
||||||
|
.unwrap_or_else(|| "4".to_string())
|
||||||
|
.parse::<u64>()
|
||||||
|
.unwrap();;
|
||||||
|
|
||||||
|
server::start_server(&listen_at, queue_size, thread_count);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue