debug: CI: explicitly supply DATABASE_URL
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2022-12-19 12:00:53 +05:30
parent 7db1fa3d3b
commit a0144bcf9b
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@ pipeline:
backend: backend:
image: rust image: rust
environment: environment:
- DATABASE_URL=postgres://postgres:password@database:5432/postgres - DATABASE_URL="postgres://postgres:password@database:5432/postgres"
commands: commands:
- curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\ - curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\
- apt update && apt-get -y --no-install-recommends install nodejs - apt update && apt-get -y --no-install-recommends install nodejs

View file

@ -46,7 +46,7 @@ lint: ## Lint codebase
migrate: ## run migrations migrate: ## run migrations
$(call cache_bust) $(call cache_bust)
unset DATABASE_URL && echo ${DATABASE_URL} && cargo build unset DATABASE_URL && echo ${DATABASE_URL} && cargo build
cargo run -- migrate DATABASE_URL=${DATABASE_URL} cargo run -- migrate
release: ## Release build release: ## Release build
$(call cache_bust) $(call cache_bust)