Skip to content

Commit

Permalink
Moving things around (again)
Browse files Browse the repository at this point in the history
Passing in the environment variable to the run command for docker compose, and then adding the variable to the environment again in the docker-compose.yml
  • Loading branch information
nataliejschultz committed Sep 19, 2023
1 parent fc5d0f7 commit ed51883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/nominatim-docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
- name: Workflow test
run: echo Smoke test

- name: Variable
run: echo "TEST_KEY=$TEST_KEY" > emission/integrationTests/.env
# - name: Variable
# run: echo "TEST_KEY=$TEST_KEY" > emission/integrationTests/.env

- name: Variable2
run: cat emission/integrationTests/.env
# - name: Variable2
# run: cat emission/integrationTests/.env


- name: Test nominatim
run: docker-compose -f emission/integrationTests/docker-compose.yml up --exit-code-from web-server
run: TEST_KEY=$TEST_KEY docker-compose -f emission/integrationTests/docker-compose.yml up --exit-code-from web-server


2 changes: 1 addition & 1 deletion emission/integrationTests/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ services:
- PBF_URL=https://download.geofabrik.de/north-america/us/rhode-island-latest.osm.pbf
- REPLICATION_URL=https://download.geofabrik.de/north-america/us/rhode-island-updates/
- IMPORT_WIKIPEDIA=false
- TEST_KEY=$TEST_KEY
- TEST_KEY=${TEST_KEY}
ports:
- "8080:8080"
# healthcheck currently commented out, since it isn't necessary and keeps going the entire time the container is running.
Expand Down

0 comments on commit ed51883

Please sign in to comment.