Skip to content

Commit 2c0dc52

Browse files
committed
Update .env approach
1 parent 1f43d31 commit 2c0dc52

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ jobs:
5353
pip install poetry
5454
pip install pytest
5555
- name: Create .env
56+
shell: bash
5657
run: |
5758
touch .env
58-
echo "${{ secrets.ENV_FILE }}" > .env
59+
echo "${{ secrets.ENV_FILE }}" | base64 --decode > .env
5960
- name: Run tests
6061
run: poetry run pytest --doctest-modules --junitxml=junit/test-results.xml
6162
lint:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.venv
22
.env
3+
*.env
34
**/__pycache__
45
.pytest_cache
56
.ruff_cache

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- Leaving the environment: `exit`
55
- Installing libraries in the environment: `make install`
66
- Run the Flask application: `python imaginate_api/app.py`
7+
- Encode / Decode .env via Bash: `cat .env | base64 -w 0 > encoded.env` / `cat encoded.env | base64 --decode > decoded.env`

0 commit comments

Comments
 (0)