Skip to content

Commit 6429b92

Browse files
committed
Fix GitHub Actions: Pass environment variables to docker run
- Explicitly pass UPSTREAM_SERVER, CACHE_MAX_SIZE, DNS_RESOLVER to docker run - Ensures envsubst has the required variables in CI environment - Matches the approach used in the nginx config test step
1 parent 3b26050 commit 6429b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Test container startup
3636
run: |
37-
docker run -d --name test-container test-image
37+
docker run -d --name test-container -e UPSTREAM_SERVER=owl.virtualflybrain.org:80 -e CACHE_MAX_SIZE=20g -e DNS_RESOLVER="8.8.8.8 1.1.1.1" test-image
3838
sleep 5
3939
if docker ps | grep -q test-container; then
4040
echo "Container is running successfully"

0 commit comments

Comments
 (0)