Skip to content

Commit 7a490c1

Browse files
committed
Adding CI/CD secrets command
1 parent f7ab357 commit 7a490c1

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,20 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install -r requirements.txt
26-
26+
27+
- name: Create config.toml from secrets
28+
run: |
29+
mkdir -p instance
30+
cat <<EOF > instance/config.toml
31+
ES_API_KEY_ID = "${{ secrets.ES_API_KEY_ID }}"
32+
ES_API_KEY_SECRET = "${{ secrets.ES_API_KEY_SECRET }}"
33+
ES_NODES = ${{
34+
secrets.ES_NODES
35+
}}
36+
SECRET_KEY = "${{ secrets.SECRET_KEY }}"
37+
META_SERVICE = "${{ secrets.META_SERVICE }}"
38+
EOF
39+
2740
- name: Run tests
2841
run: |
2942
pytest app/test

0 commit comments

Comments
 (0)