This commit is contained in:
parent
b2ae852f0b
commit
e63cb45401
3 changed files with 25 additions and 22 deletions
2
.woodpecker/deploy.sh
Normal file → Executable file
2
.woodpecker/deploy.sh
Normal file → Executable file
|
@ -7,7 +7,7 @@ echo "ORGANIZING THE FILES"
|
||||||
mkdir ludo-go
|
mkdir ludo-go
|
||||||
mv target/release/ludo-go-server ludo-go/.
|
mv target/release/ludo-go-server ludo-go/.
|
||||||
mv target/release/ludo-go-db ludo-go/.
|
mv target/release/ludo-go-db ludo-go/.
|
||||||
mv target/release/play-go ludo-go/.
|
mv target/release/go-game ludo-go/.
|
||||||
## move the database here
|
## move the database here
|
||||||
|
|
||||||
# copy files to deployment target
|
# copy files to deployment target
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
name: ludo-go-pipeline
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
include: [ main ]
|
include: [ main ]
|
||||||
|
@ -11,7 +9,7 @@ steps:
|
||||||
- cargo build --workspace -r
|
- cargo build --workspace -r
|
||||||
- cargo test --verbose
|
- cargo test --verbose
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
secrets:
|
secrets:
|
||||||
- oxaliq_deploy_ssh
|
- oxaliq_deploy_ssh
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
fn main() {
|
use warp::Filter;
|
||||||
println!("Hello, world!");
|
|
||||||
|
#[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