diff --git a/.github/workflows/e2e_tests.yml b/.github/workflows/e2e_tests.yml index 40124986..edc5b5fd 100644 --- a/.github/workflows/e2e_tests.yml +++ b/.github/workflows/e2e_tests.yml @@ -59,7 +59,7 @@ jobs: # uses: actions/checkout@master # with: # repository: datakind/recipes-ai-test-data - # ssh-key: ${{ secrets.SSH_PRIVATE_KEY}} + # ssh-key: ${{ secrets.GITHUB_SSH_PRIVATE_KEY}} # path: recipes-ai-test-data - name: Expose GitHub Runtime @@ -70,7 +70,6 @@ jobs: # env > .env # export DATA_DB_CONN_STRING="postgresql://${POSTGRES_DATA_USER}:${POSTGRES_DATA_PASSWORD}@${POSTGRES_DATA_HOST}:${POSTGRES_DATA_PORT}/${POSTGRES_DATA_DB}" # export POSTGRES_RECIPE_CONN_STRING="postgresql://${POSTGRES_RECIPE_USER}:${POSTGRES_RECIPE_PASSWORD}@${POSTGRES_RECIPE_HOST}:${POSTGRES_RECIPE_PORT}/${POSTGRES_RECIPE_DB}" - # docker buildx create --use --driver=docker-container # docker buildx bake -f ./docker-compose-dev.yml --set *.cache-to="type=gha,mode=max" --set *.cache-from="type=gha" --load --set *.platform=linux/amd64 --metadata-file metadata.json # cat metadata.json @@ -78,6 +77,9 @@ jobs: - name: Spin up services run: | + env > .env + export DATA_DB_CONN_STRING="postgresql://${POSTGRES_DATA_USER}:${POSTGRES_DATA_PASSWORD}@${POSTGRES_DATA_HOST}:${POSTGRES_DATA_PORT}/${POSTGRES_DATA_DB}" + export RECIPE_DB_CONN_STRING="postgresql://${POSTGRES_RECIPE_USER}:${POSTGRES_RECIPE_PASSWORD}@${POSTGRES_RECIPE_HOST}:${POSTGRES_RECIPE_PORT}/${POSTGRES_RECIPE_DB}" # TODO this should be enhanced to use a buildx bake to leverage layer caching for faster builds, or push to repo and simply have a pull for the run # TODO docker-compose files should be refactored to use scopes instead of different versions for each environment