From c348430dae379faf9257e7cec8bc641beed488f9 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Tue, 18 Mar 2025 17:23:57 +0100 Subject: [PATCH] prepare env vars on ci script --- .azure-pipelines.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index eca41ad..720ac3e 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -9,5 +9,11 @@ pool: steps: - script: | - echo "Running on branch: ${BUILD_SOURCEBRANCH#refs/heads/}" > smoke.txt - displayName: 'Smoke test filesystem access' \ No newline at end of file + echo "Running on branch: ${BUILD_SOURCEBRANCH#refs/heads/}" + displayName: 'Smoke test filesystem access' + +- script: | + cp ~/dbt-ci/.env . + echo "POSTGRES_DATABASE=${BUILD_SOURCEBRANCH#refs/heads/}" >> .env + set -a && source .env && set +a + displayName: 'Load env'