Skip to content

Commit dd83f29

Browse files
committed
Merge branch 'main' of github.com:geoffwhittington/meshtastic-bridge into main
2 parents 26d540f + b72102c commit dd83f29

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed

.github/workflows/main.yaml

+8-13
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,16 @@ on:
44
- "*"
55

66
jobs:
7-
build:
8-
name: Build, push
7+
docker-buildx:
98
runs-on: ubuntu-latest
109
steps:
1110
- name: Checkout main
1211
uses: actions/checkout@main
1312

14-
- name: Build container
15-
run: docker build --tag gwhittington/meshtastic-bridge:latest .
16-
17-
- name: Log in to Container Registry with short-lived credentials
18-
run: docker login --username=gwhittington --password "${{secrets.DOCKER_HUB}}"
19-
20-
- name: Push image to Container Registry
21-
run: docker push gwhittington/meshtastic-bridge:latest
22-
23-
- name: Logout from Container Registry
24-
run: docker logout
13+
- name: Build and publish image
14+
uses: zmingxie/docker_buildx@master
15+
with:
16+
publish: true
17+
imageName: gwhittington/meshtastic-bridge
18+
dockerHubUser: gwhittington
19+
dockerHubPassword: ${{secrets.DOCKER_HUB}}

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ WORKDIR /code
77
# copy the dependencies file to the working directory
88
COPY requirements.txt .
99

10+
RUN apt-get update && apt-get install -y cargo
11+
1012
# install dependencies
13+
RUN pip install -U pip
14+
RUN pip install setuptools_rust wheel
1115
RUN pip install -r requirements.txt
1216

1317
# copy the content of the local src directory to the working directory

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ mqtt_servers:
6666
mqtt-to-radio:
6767
- decrypt_filter:
6868
key: '/home/user/keys/key.pem'
69-
- send_plugin:
69+
- radio_message_plugin:
7070
device: remote
7171
pipelines:
7272
radio-to-mqtt:
@@ -110,7 +110,7 @@ The following plugins can be used in the `pipelines` section of `config.yaml`:
110110
| `mqtt_plugin` | Send packets to a MQTT server |
111111
| `encrypt_filter` | Encrypt a packet for a desired MQTT recipient |
112112
| `decrypt_filter` | Decrypt a packet originating from MQTT |
113-
| `send_plugin` | Send a packet to a specified `device` |
113+
| `radio_message_plugin` | Send a packet to a specified `device` |
114114

115115
### debugger - Output the contents of a packet
116116

@@ -153,8 +153,8 @@ message_filter:
153153
- **log_level** `debug` or `info`. Default `info`
154154
- **max_distance_km** Filter packets more than a certain distance
155155
- **comparison** `within` or `outside`. Default `within`
156-
- **compare_latitude** Set the latitude to compare against
157-
- **compare_longitude** Set the longitude to compare against
156+
- **compare_latitude** latitude to compare against
157+
- **compare_longitude** longitude to compare against
158158
- **latitude** Set the latitude
159159
- **longitude** Set the longitude
160160

0 commit comments

Comments
 (0)