From 5cf116bf4594628e0c4158d7d96039b273f2a59f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 16 May 2024 11:17:47 -0400 Subject: [PATCH] Abstracting diesel cli install. --- .woodpecker.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 38900e623..5c1670b4e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -28,17 +28,10 @@ variables: - 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 - cp cargo-binstall /usr/local/cargo/bin + - install_diesel_cli: &install_diesel_cli + - cargo binstall -y diesel_cli - 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: prepare_repo: image: alpine:3 @@ -56,8 +49,7 @@ steps: DATABASE_URL: postgres://lemmy:password@database:5432/lemmy commands: - <<: *install_binstall - # Install diesel_cli - - cargo binstall -y diesel_cli + - <<: *install_diesel_cli - diesel migration run - diesel print-schema --config-file=diesel.toml > tmp.schema - diff tmp.schema crates/db_schema/src/schema.rs