Skip to content

Commit

Permalink
moves envars up
Browse files Browse the repository at this point in the history
Signed-off-by: anchit-chandran <[email protected]>
  • Loading branch information
anchit-chandran committed Jul 11, 2023
1 parent a2bd792 commit c39b1e7
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/test-workflow-temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest

# This 'env' refers to environment variables
env:
DJANGO_CSRF_TRUSTED_ORIGINS: https://localhost,https://0.0.0.0
E12_POSTGRES_DB_HOST: 127.0.0.1
E12_POSTGRES_DB_NAME: db
E12_POSTGRES_DB_PASSWORD: postgis
E12_POSTGRES_DB_PORT: 5432
E12_POSTGRES_DB_USER: postgis
POSTCODES_IO_API_URL: https://api.postcodes.io
RCPCH_CENSUS_PLATFORM_TOKEN: ${{ secrets.RCPCH_CENSUS_PLATFORM_TOKEN }}
RCPCH_CENSUS_PLATFORM_URL: https://api.rcpch.ac.uk/deprivation/v1
RCPCH_HERMES_SERVER_URL: http://rcpch-hermes.uksouth.azurecontainer.io:8080/v1/snomed

# this 'environment' refers to GitHub Environments, not environment variables
environment:
name: "development"
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
Expand Down Expand Up @@ -54,17 +68,7 @@ jobs:
# run migrations and tests
- name: Run migrations
run: python manage.py migrate
env:
DJANGO_CSRF_TRUSTED_ORIGINS: https://localhost,https://0.0.0.0
E12_POSTGRES_DB_HOST: 127.0.0.1
E12_POSTGRES_DB_NAME: db
E12_POSTGRES_DB_PASSWORD: postgis
E12_POSTGRES_DB_PORT: 5432
E12_POSTGRES_DB_USER: postgis
POSTCODES_IO_API_URL: https://api.postcodes.io
RCPCH_CENSUS_PLATFORM_TOKEN: ${{ secrets.RCPCH_CENSUS_PLATFORM_TOKEN }}
RCPCH_CENSUS_PLATFORM_URL: https://api.rcpch.ac.uk/deprivation/v1
RCPCH_HERMES_SERVER_URL: http://rcpch-hermes.uksouth.azurecontainer.io:8080/v1/snomed

- name: print settings for debugging purposes
run: python manage.py diffsettings --all
# - name: Pytest Suite
Expand Down

0 comments on commit c39b1e7

Please sign in to comment.