diff --git a/.github/workflows/mqtt.yml b/.github/workflows/mqtt.yml new file mode 100644 index 0000000..955650f --- /dev/null +++ b/.github/workflows/mqtt.yml @@ -0,0 +1,35 @@ +name: Build MQTT + +on: + push: + paths: + - mqtt + workflow_run: + workflows: + - Lint Docker Files + branches: [ 'master', 'feature/**' ] + types: + - completed + +jobs: + MQTT-build: + name: "MQTT" + runs-on: self-hosted + steps: + - uses: actions/checkout@v1 + - uses: docker/setup-qemu-action@v1 + - uses: docker/setup-buildx-action@v1 + - uses: docker/login-action@v1 + name: Login to Docker Hub + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_PASSWORD }} + - uses: docker/build-push-action@v2 + name: Build & Push + with: + context: mqtt + platforms: linux/amd64,linux/arm64 + pull: true + push: true + tags: | + benzine/mqtt diff --git a/mqtt/Dockerfile b/mqtt/Dockerfile new file mode 100644 index 0000000..d10d808 --- /dev/null +++ b/mqtt/Dockerfile @@ -0,0 +1,3 @@ +FROM eclipse-mosquitto:latest + +COPY mosquitto.conf /mosquitto/config/mosquitto.conf \ No newline at end of file diff --git a/mqtt/mosquitto.conf b/mqtt/mosquitto.conf new file mode 100644 index 0000000..66479dd --- /dev/null +++ b/mqtt/mosquitto.conf @@ -0,0 +1,5 @@ +# This is a Mosquitto configuration file that creates a listener on port 1883 +# that allows unauthenticated access. + +listener 1883 0.0.0.0 +allow_anonymous true