Skip to content

Commit 067de9a

Browse files
committed
sorting env var issues
1 parent 95aefb0 commit 067de9a

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

.github/workflows/testing-wip.yml

+9-13
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ on:
1616
jobs:
1717
wip-tests:
1818
runs-on: ubuntu-latest
19+
env:
20+
MSAL_CB_PORT: 8000
21+
MSAL_HOST: localhost
22+
MSAL_APP_ID: ${{ secrets.QA_MSAL_APP_ID }}
23+
MSAL_TENANT_ID: ${{ secrets.QA_MSAL_TENANT_ID }}
24+
QA_ADMIN_PW: ${{ secrets.QA_ADMIN_PW }}
25+
QA_OPENAI_KEY: ${{ secrets.QA_OPENAI_KEY }}
26+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
1927
steps:
2028
- name: Checkout the Code
2129
uses: actions/checkout@v4
@@ -26,18 +34,6 @@ jobs:
2634
username: ${{ secrets.DOCKER_USERNAME }}
2735
password: ${{ secrets.DOCKER_PASSWORD }}
2836

29-
- name: Setup the Environment File
30-
run: |
31-
cat <<EOF > .env
32-
SWIRL_TEST_HOST=localhost
33-
MSAL_HOST=localhost
34-
MSAL_CB_PORT=8000
35-
MSAL_APP_ID=${{ secrets.QA_MSAL_APP_ID }}
36-
MSAL_TENANT_ID=${{ secrets.QA_MSAL_TENANT_ID }}
37-
QA_ADMIN_PW=${{ secrets.QA_ADMIN_PW }}
38-
QA_OPENAI_KEY=${{ secrets.QA_OPENAI_KEY }}
39-
EOF
40-
4137
- name: Build and Start Application
4238
run: docker-compose -f docker-compose-build.yml up --build -d
4339

@@ -58,7 +54,7 @@ jobs:
5854
echo "Application is ready."
5955
6056
- name: Run the QA Suite
61-
run: docker run --net=host --env-file .env -t swirlai/swirl-search-qa:automated-tests-develop sh -c "behave --tags=${{ github.event.inputs.behave_tags }}"
57+
run: docker run --net=host -t swirlai/swirl-search-qa:automated-tests-develop sh -c "behave --tags=${{ github.event.inputs.behave_tags }}"
6258

6359
- name: Cleanup Application Environment
6460
run: docker-compose -f docker-compose-build.yml down

docker-compose-build.yml

+5-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,12 @@ services:
1515
-e "s/<msal-host>/$MSAL_HOST/" > static/api/config/default &&
1616
python swirl.py start celery-worker celery-beats &&
1717
daphne -b 0.0.0.0 -p 8000 swirl_server.asgi:application'
18-
1918
environment:
20-
- MSAL_CB_PORT=${MSAL_CB_PORT}
21-
- MSAL_HOST=${MSAL_HOST}
22-
- MSAL_APP_ID=${MSAL_APP_ID}
23-
- MSAL_TENANT_ID=${MSAL_TENANT_ID}
24-
- OPENAI_API_KEY=${OPENAI_API_KEY}
19+
MSAL_CB_PORT: $MSAL_CB_PORT
20+
MSAL_HOST: $MSAL_HOST
21+
MSAL_APP_ID: $MSAL_APP_ID
22+
MSAL_TENANT_ID: $MSAL_TENANT_ID
23+
OPENAI_API_KEY: $OPENAI_API_KEY
2524
depends_on:
2625
- redis
2726

0 commit comments

Comments
 (0)