1717 sudo echo "127.0.0.1 hello-world.test" | sudo tee -a /etc/hosts
1818 - name : ' Copy configuration files'
1919 run : cp -r configs-local configs
20+ - name : ' Create empty certificate files'
21+ run : |
22+ echo "{}" > certificates/acme.json
23+ chmod 600 certificates/acme.json
2024 - name : ' Start reverse proxy with local setup'
2125 run : docker compose -f docker-compose.local.yml up -d --wait
2226 - name : ' Test dashboard'
2529 run : cd examples && docker compose -f docker-compose.local.yml up -d
2630 - name : ' Test hello-world'
2731 run : curl http://hello-world.test
32+ - name : ' Output logs'
33+ run : docker compose -f docker-compose.prod.yml logs
34+
2835 prod-setup :
2936 runs-on : ubuntu-latest
3037 steps :
@@ -40,12 +47,18 @@ jobs:
4047 sudo echo "127.0.0.1 reverse-proxy.test" | sudo tee -a /etc/hosts
4148 sudo echo "127.0.0.1 hello-world.test" | sudo tee -a /etc/hosts
4249 - name : ' Copy configuration files'
43- run : cp -r configs-local configs
44- - name : ' Start reverse proxy with local setup'
50+ run : cp -r configs-prod configs
51+ - name : ' Create empty certificate files'
52+ run : |
53+ echo "{}" > certificates/acme.json
54+ chmod 600 certificates/acme.json
55+ - name : ' Start reverse proxy with production setup'
4556 run : docker compose -f docker-compose.prod.yml up -d --wait
4657 - name : ' Test dashboard'
4758 run : curl http://reverse-proxy.test/dashboard/#/
4859 - name : ' Start hello-world example'
4960 run : cd examples && docker compose -f docker-compose.prod.yml up -d
5061 - name : ' Test hello-world'
5162 run : curl http://hello-world.test
63+ - name : ' Output logs'
64+ run : docker compose -f docker-compose.prod.yml logs
0 commit comments