From e6030073c833e7c0122a6a4877ad3d3d97cf493c Mon Sep 17 00:00:00 2001 From: Sudip Bhattarai Date: Thu, 2 Jan 2025 14:15:04 +0545 Subject: [PATCH] Test: Load .env file before build --- .github/workflows/build-and-deploy-test-stack.yml | 4 ---- tests/test-infrastructure/build-and-deploy.sh | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build-and-deploy-test-stack.yml b/.github/workflows/build-and-deploy-test-stack.yml index 64c84be16..d5bd5c68a 100644 --- a/.github/workflows/build-and-deploy-test-stack.yml +++ b/.github/workflows/build-and-deploy-test-stack.yml @@ -87,10 +87,6 @@ jobs: IPFS_PROJECT_ID=${{ secrets.IPFS_PROJECT_ID }} EOF - # Source the .env file - echo "Sourcing .env file..." - source "$ENV_FILE" - # Execute the build-and-deploy.sh script ./build-and-deploy.sh update-images yes | docker system prune -f || echo "Ignoring system prune error" diff --git a/tests/test-infrastructure/build-and-deploy.sh b/tests/test-infrastructure/build-and-deploy.sh index 2244cb73a..9e97c6780 100755 --- a/tests/test-infrastructure/build-and-deploy.sh +++ b/tests/test-infrastructure/build-and-deploy.sh @@ -11,6 +11,7 @@ export GOVTOOL_TAG . ./scripts/deploy-stack.sh +load_env check_env # Build images