This commit is contained in:
parent
b2ae852f0b
commit
cec08b5709
3 changed files with 24 additions and 21 deletions
0
.woodpecker/deploy.sh
Normal file → Executable file
0
.woodpecker/deploy.sh
Normal file → Executable file
|
@ -1,5 +1,3 @@
|
|||
name: ludo-go-pipeline
|
||||
|
||||
when:
|
||||
branch:
|
||||
include: [ main ]
|
||||
|
@ -11,7 +9,7 @@ steps:
|
|||
- cargo build --workspace -r
|
||||
- cargo test --verbose
|
||||
|
||||
deploy:
|
||||
deploy:
|
||||
image: alpine:latest
|
||||
secrets:
|
||||
- oxaliq_deploy_ssh
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
fn main() {
|
||||
println!("Hello, world!");
|
||||
use warp::Filter;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
let root = warp::path::end().map(|| "hello world");
|
||||
|
||||
warp::serve(root).run(([127, 0, 0, 1], 5000)).await;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue