mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-23 10:25:56 +00:00
Abstracting diesel cli install.
This commit is contained in:
parent
02036cf1a4
commit
5cf116bf45
1 changed files with 3 additions and 11 deletions
|
@ -28,17 +28,10 @@ variables:
|
||||||
- wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
|
- wget https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
|
||||||
- tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
|
- tar -xvf cargo-binstall-x86_64-unknown-linux-musl.tgz
|
||||||
- cp cargo-binstall /usr/local/cargo/bin
|
- cp cargo-binstall /usr/local/cargo/bin
|
||||||
|
- install_diesel_cli: &install_diesel_cli
|
||||||
|
- cargo binstall -y diesel_cli
|
||||||
- export PATH="$CARGO_HOME/bin:$PATH"
|
- export PATH="$CARGO_HOME/bin:$PATH"
|
||||||
|
|
||||||
# Broken for cron jobs currently, see
|
|
||||||
# https://github.com/woodpecker-ci/woodpecker/issues/1716
|
|
||||||
# clone:
|
|
||||||
# git:
|
|
||||||
# image: woodpeckerci/plugin-git
|
|
||||||
# settings:
|
|
||||||
# recursive: true
|
|
||||||
# submodule_update_remote: true
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
prepare_repo:
|
prepare_repo:
|
||||||
image: alpine:3
|
image: alpine:3
|
||||||
|
@ -56,8 +49,7 @@ steps:
|
||||||
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
DATABASE_URL: postgres://lemmy:password@database:5432/lemmy
|
||||||
commands:
|
commands:
|
||||||
- <<: *install_binstall
|
- <<: *install_binstall
|
||||||
# Install diesel_cli
|
- <<: *install_diesel_cli
|
||||||
- cargo binstall -y diesel_cli
|
|
||||||
- diesel migration run
|
- diesel migration run
|
||||||
- diesel print-schema --config-file=diesel.toml > tmp.schema
|
- diesel print-schema --config-file=diesel.toml > tmp.schema
|
||||||
- diff tmp.schema crates/db_schema/src/schema.rs
|
- diff tmp.schema crates/db_schema/src/schema.rs
|
||||||
|
|
Loading…
Reference in a new issue