Skip to content

Commit 38c8f99

Browse files
authored
Serve a static asset
1 parent 8f596e8 commit 38c8f99

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/dockerimage.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ jobs:
2020

2121
- name: Run nginx -V
2222
run: docker run -t ${{ github.repository }} nginx -V
23+
24+
- name: Serve a static asset
25+
run: |
26+
docker run --detach --rm -p 0.0.0.0:8888:80 -v "./tests":/static:ro -v "./tests/static.conf":/etc/nginx/conf.d/static.conf:ro --tag nginx ${{ github.repository }}
27+
sleep 2; docker ps
28+
curl -v --compressed 0.0.0.0:8888
29+
docker logs nginx

0 commit comments

Comments
 (0)