deploy with caprover cli
This commit is contained in:
parent
5e1eac4d78
commit
2f32818a72
3 changed files with 12 additions and 5 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
|
# build docker image with `latest` tag
|
||||||
docker-latest:
|
docker-latest:
|
||||||
when:
|
|
||||||
branch: master
|
|
||||||
event: push
|
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
registry: https://gitea.y.z.x4m3.rocks
|
registry: https://gitea.y.z.x4m3.rocks
|
||||||
|
|
@ -12,5 +10,13 @@ pipeline:
|
||||||
repo: gitea.y.z.x4m3.rocks/${CI_REPO_OWNER}/ezidam
|
repo: gitea.y.z.x4m3.rocks/${CI_REPO_OWNER}/ezidam
|
||||||
tag: latest
|
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:
|
depends_on:
|
||||||
- rust
|
- rust
|
||||||
|
branches: master
|
||||||
|
|
@ -4,6 +4,7 @@ variables:
|
||||||
pipeline:
|
pipeline:
|
||||||
test:
|
test:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
# setup
|
# setup
|
||||||
- rm rust-toolchain.toml # use default installed toolchain
|
- rm rust-toolchain.toml # use default installed toolchain
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ pub fn rocket_setup(rocket_builder: Rocket<Build>) -> Rocket<Build> {
|
||||||
use database::Database;
|
use database::Database;
|
||||||
use error::catchers;
|
use error::catchers;
|
||||||
use response_timer::ResponseTimer;
|
use response_timer::ResponseTimer;
|
||||||
use rocket::fs::{relative, FileServer};
|
use rocket::fs::FileServer;
|
||||||
use rocket_dyn_templates::Template;
|
use rocket_dyn_templates::Template;
|
||||||
|
|
||||||
// Response timer
|
// Response timer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue