This commit is contained in:
Greyscale 2021-06-27 00:20:29 +02:00
parent 72b8276b47
commit b2214efda3
3 changed files with 43 additions and 0 deletions

35
.github/workflows/mqtt.yml vendored Normal file
View file

@ -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

3
mqtt/Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM eclipse-mosquitto:latest
COPY mosquitto.conf /mosquitto/config/mosquitto.conf

5
mqtt/mosquitto.conf Normal file
View file

@ -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