From a0144bcf9bc38ab2484e4426cfb30eb1bc27e41f Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Mon, 19 Dec 2022 12:00:53 +0530 Subject: [PATCH] debug: CI: explicitly supply DATABASE_URL --- .woodpecker.yml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index f81623a..3ce374e 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -2,7 +2,7 @@ pipeline: backend: image: rust environment: - - DATABASE_URL=postgres://postgres:password@database:5432/postgres + - DATABASE_URL="postgres://postgres:password@database:5432/postgres" commands: - curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\ - apt update && apt-get -y --no-install-recommends install nodejs diff --git a/Makefile b/Makefile index 14e715d..5abaa87 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ lint: ## Lint codebase migrate: ## run migrations $(call cache_bust) unset DATABASE_URL && echo ${DATABASE_URL} && cargo build - cargo run -- migrate + DATABASE_URL=${DATABASE_URL} cargo run -- migrate release: ## Release build $(call cache_bust)