chore: add dummy .env file creation step in Docker build workflow
Introduced a step in the Docker build workflow to create a dummy .env file with placeholder values for TELEGRAM_API_ID, TELEGRAM_API_HASH, and TELEGRAM_SESSION_STRING, facilitating local development and testing.
This commit is contained in:
parent
3c66504fb5
commit
02f326ce38
1 changed files with 7 additions and 0 deletions
7
.github/workflows/docker-build.yml
vendored
7
.github/workflows/docker-build.yml
vendored
|
|
@ -32,6 +32,13 @@ jobs:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Create dummy .env file
|
||||||
|
run: |
|
||||||
|
echo "TELEGRAM_API_ID=DUMMY_ID" > .env
|
||||||
|
echo "TELEGRAM_API_HASH=DUMMY_HASH" >> .env
|
||||||
|
echo "TELEGRAM_SESSION_STRING=DUMMY_SESSION" >> .env
|
||||||
|
# Add other required variables with dummy values if needed
|
||||||
|
|
||||||
- name: Validate Compose file syntax
|
- name: Validate Compose file syntax
|
||||||
run: docker compose config
|
run: docker compose config
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue