diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 0a4aab3..916e26f 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -19,5 +19,8 @@ steps: displayName: 'Load env' - script: | + cp ~/dbt-ci/.env . + echo "POSTGRES_DATABASE=${BUILD_SOURCEBRANCH#refs/heads/}" >> .env + set -a && source .env && set +a psql -h $POSTGRES_HOST -U $POSTGRES_USER -d postgres -c "SELECT 1 FROM pg_database WHERE datname = 'postgres';" displayName: 'Smoke test Postgres connection' \ No newline at end of file