Skip to content

Commit 1d67307

Browse files
committed
Fix CI: add CACHE_STALE_TIME to nginx config test and container startup steps
1 parent a37d862 commit 1d67307

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ jobs:
2828
env:
2929
UPSTREAM_SERVER: owl.virtualflybrain.org:80
3030
CACHE_MAX_SIZE: 20g
31+
CACHE_STALE_TIME: 6M
3132
DNS_RESOLVER: 8.8.8.8
3233
run: |
33-
envsubst '${UPSTREAM_SERVER} ${CACHE_MAX_SIZE} ${DNS_RESOLVER}' < nginx.conf.template > test-nginx.conf
34+
envsubst '${UPSTREAM_SERVER} ${CACHE_MAX_SIZE} ${CACHE_STALE_TIME} ${DNS_RESOLVER}' < nginx.conf.template > test-nginx.conf
3435
docker run --rm -v $(pwd)/test-nginx.conf:/tmp/nginx.conf nginx:1.26-alpine nginx -t -c /tmp/nginx.conf
3536
3637
- name: Build test Docker image
@@ -40,11 +41,13 @@ jobs:
4041
env:
4142
UPSTREAM_SERVER: owl.virtualflybrain.org:80
4243
CACHE_MAX_SIZE: 20g
44+
CACHE_STALE_TIME: 6M
4345
DNS_RESOLVER: 8.8.8.8
4446
run: |
4547
docker run -d --name test-container \
4648
-e UPSTREAM_SERVER \
4749
-e CACHE_MAX_SIZE \
50+
-e CACHE_STALE_TIME \
4851
-e DNS_RESOLVER \
4952
test-image
5053
sleep 5

0 commit comments

Comments
 (0)