deploy with caprover cli

This commit is contained in:
Philippe Loctaux 2023-03-21 22:06:38 +01:00
parent 5e1eac4d78
commit 2f32818a72
3 changed files with 12 additions and 5 deletions

View file

@ -1,8 +1,6 @@
pipeline:
# build docker image with `latest` tag
docker-latest:
when:
branch: master
event: push
image: woodpeckerci/plugin-docker-buildx
settings:
registry: https://gitea.y.z.x4m3.rocks
@ -12,5 +10,13 @@ pipeline:
repo: gitea.y.z.x4m3.rocks/${CI_REPO_OWNER}/ezidam
tag: latest
# deploy
deploy-latest:
image: caprover/cli-caprover:2.2.3
commands:
- caprover deploy -u $CAPROVER_URL -a $CAPROVER_APP -i gitea.y.z.x4m3.rocks/${CI_REPO_OWNER}/ezidam:latest
secrets: [ CAPROVER_URL, CAPROVER_APP_TOKEN, CAPROVER_APP ]
depends_on:
- rust
branches: master

View file

@ -4,6 +4,7 @@ variables:
pipeline:
test:
image: *rust_image
pull: true
commands:
# setup
- rm rust-toolchain.toml # use default installed toolchain

View file

@ -21,7 +21,7 @@ pub fn rocket_setup(rocket_builder: Rocket<Build>) -> Rocket<Build> {
use database::Database;
use error::catchers;
use response_timer::ResponseTimer;
use rocket::fs::{relative, FileServer};
use rocket::fs::FileServer;
use rocket_dyn_templates::Template;
// Response timer