Skip to content

Commit 4133abc

Browse files
committed
Add a filler .env to ensure the Docker step builds successfully
1 parent 488fcd9 commit 4133abc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/rust-and-docker.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,10 @@ jobs:
5656
- name: Run tests
5757
run: cargo test --verbose --all-features -- --nocapture
5858

59+
- name: Create filler .env for Docker build
60+
run: |
61+
echo "DATABASE_URL=${DATABASE_URL}" > .env
62+
echo "BOT_TOKEN=dummy_token" >> .env
63+
5964
- name: Build Docker image
6065
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

0 commit comments

Comments
 (0)