File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -55,19 +55,29 @@ jobs:
55
55
container :
56
56
image : ${{ matrix.tag }}
57
57
services :
58
- # need to update docker image if you update the certificates
59
- # run `build-docker-ci-image.sh`
60
58
mosquitto :
61
- image : adamfowlerphoto/mqttnio-mosquitto
59
+ image : eclipse-mosquitto
60
+ options : --name mosquitto
62
61
ports :
63
62
- 1883:1883
64
63
- 1884:1884
65
64
- 8883:8883
66
65
- 8080:8080
67
66
- 8081:8081
67
+ volumes :
68
+ - ${{ github.workspace }}/mosquitto/config:/mosquitto/config
69
+ - ${{ github.workspace }}/mosquitto/certs:/mosquitto/certs
70
+
68
71
steps :
69
72
- name : Checkout
70
73
uses : actions/checkout@v2
74
+ - name : Restart Mosquitto
75
+ # The mosquitto service container is started *before* mqtt-nio is checked
76
+ # out. Restarting the container after the checkout step is needed for the
77
+ # container to see volumes populated from the checked out workspace.
78
+ uses : docker://docker
79
+ with :
80
+ args : docker restart mosquitto
71
81
- name : Test
72
82
env :
73
83
MOSQUITTO_SERVER : mosquitto
You can’t perform that action at this time.
0 commit comments