Skip to content

Commit 8dd684d

Browse files
authored
ci: Use eclipse-mosquitto image instead of custom (#147)
1 parent 345ef16 commit 8dd684d

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,29 @@ jobs:
5555
container:
5656
image: ${{ matrix.tag }}
5757
services:
58-
# need to update docker image if you update the certificates
59-
# run `build-docker-ci-image.sh`
6058
mosquitto:
61-
image: adamfowlerphoto/mqttnio-mosquitto
59+
image: eclipse-mosquitto
60+
options: --name mosquitto
6261
ports:
6362
- 1883:1883
6463
- 1884:1884
6564
- 8883:8883
6665
- 8080:8080
6766
- 8081:8081
67+
volumes:
68+
- ${{ github.workspace }}/mosquitto/config:/mosquitto/config
69+
- ${{ github.workspace }}/mosquitto/certs:/mosquitto/certs
70+
6871
steps:
6972
- name: Checkout
7073
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
7181
- name: Test
7282
env:
7383
MOSQUITTO_SERVER: mosquitto

0 commit comments

Comments
 (0)